Oliver Neukum wrote:
Halt endpoints by doing a "wrong direction" I/O ... read from an IN endpoint
(instead of writing to the host), or write to an OUT endpoint (instead of
reading what it wrote).  ...

That depends on whether you want to design a clean API, or you are driven by avoiding ioctl, which is a valid part of the Unix API, at all cost and your overriding concern are shell scripts.

Think of it instead as portability. The main barrier to being able to use this should be knowing USB -- not whether your chosen programming environment supports POSIX-specific APIs.

Remember that _today_ you can write fully realistic user mode
gadget drivers in C, C++, Python, Java, and other languages
(including BASH!).  Not all of those have, or want, ioctl().

- Dave




------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to