USB Zero length packet

Hans Petter Selasky hselasky at c2i.net
Fri Jan 13 20:58:01 UTC 2012


On Friday 13 January 2012 10:29:18 Daniel Grech wrote:
> Hi,
> 
> does anybody know what the procedure for sending a zero length packet
> through libusb on FreeBSD is ?
> 
> Thanks in advance,
> 
> Regards,
> 
> Daniel

By writing zero bytes, you send a zero length packet. With the libusb20 API 
you can set a flag to optimise this case in the kernel instead.

--HPS


More information about the freebsd-hackers mailing list