On Wed, 2006-11-22 at 16:46 -0800, Pete Zaitcev wrote:
> I'm thinking if I should add a "force O_NONBLOCK" flag somehow,
> in case someone wants to flush all events. If you find an application
> which can make an intelligent use of it, please let me know.

At least in libpcap this should be useful. We need to implement a loop
where at most N events are read from the buffer. After fetching and
processing them we need to acknowledge them without fetching any others.

Perhaps, just to keep things simple, the flush only operation should be
implemented as a separate ioctl command ?!? 

ciao,

Paolo




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to