On Thu, 23 Nov 2006 09:06:41 +0100, Paolo Abeni <[EMAIL PROTECTED]> wrote: > 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. That you can do right now. Since you know that N events are present, you can put that number into nflush and zero into nfetch and the ioctl won't block on you. > Perhaps, just to keep things simple, the flush only operation should be > implemented as a separate ioctl command ?!? I can add that too. -- Pete ------------------------------------------------------------------------- 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