One more thing to mention here ... there are also some new
primitives in the 2.5 kernel that use bulk queueing given
scatterlist data structures. Not useful for net drivers,
but it manages a queue of requests automatically. The API
is written up in kerneldoc (rtfm!) but it's simple

struct sg_request io;

if (usb_sg_init (scatterlist, io, etc ...) < 0)
fail;
usb_sg_wait (&io);

SCSI-ish drivers could use that immediately, and may want
to use the

usb_sg_cancel (&io);

primitive to stop processing because of whatever (timeout,
you name it)

Think of them as convenience functions.

- Dave




-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to