Am Mittwoch, 6. August 2003 22:09 schrieb David Brownell: > Alan Stern wrote: > > David: > > > > A few things have come while planning my gadget driver. > > > > The gadgetfs API still looks a bit preliminary. Judging by the source, > > there doesn't even appear to be any way to halt an endpoint! Anyway, I > > decided not to use it; the performance penalties would make it a bad model > > for this purpose in any case. > > 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). This idiom avoids use of ioctls, and makes use > of a code path that would otherwise just return an error.
That is worse than an ioctl. Read and write should transfer data, not change status of an io channel. Regards Oliver ------------------------------------------------------- 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