[PATCH 17/17] fileio: Add command "com" to write to files

Joel Sherrill joel at rtems.org
Fri Mar 11 00:49:16 UTC 2016


On Thu, Mar 10, 2016 at 6:42 PM, Chris Johns <chrisj at rtems.org> wrote:

> On 10/03/2016 09:25, Joel Sherrill wrote:
>
>> This was used to open, write, and close the VGA console and
>> /dev/pcicom1 for testing purposes.
>>
>
> Does this do the same thing?
>
> [/] # dd if=text.txt of=/dev/pcicom1
>
>
I didn't mean to submit this. It was a test command so I could very
explicitly control calling open(), write(), and close(). I had debug
printk's turned on to see the register accesses for each.

That functionally does the same operations if you had a set of small files
but you wouldn't see a break between open(), write() and close().

I don't know if it is worth being in the tree or not. It was a quickly
thrown together utility for testing. If it has value, then we can rename
it and add some requirements.

My lspci command is similar. If we get every BSP to standard PCI
support, it might be useful but until then, it is just a test utility.


> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160310/938b7336/attachment-0002.html>


More information about the devel mailing list