From: Stefan S. <dev...@gm...> - 2012-09-24 08:07:38
|
Hi ! On 09/21/2012 06:03 PM, Miklos Szeredi wrote: >> 3. The poll timeout is IMHO the *most* important field. >> Within that timeout, our callback function should return. >> That is, either with an event or with a timeout return code. >> >> -- If this information is not available from within the >> callback function, how is it possible to create a correct >> poll behavior *at all* ? > > The ->poll() method should reply *immediately*. If there were no events > at the time of call, then it should return an empty event mask. > > If the pollhandle is non-NULL then the driver should call > fuse_lowelevel_notify_poll() when *any* event occurs. > > The poll notification needs to be called only once per event, regardless > of the number of times ->poll() was called previously without an event > occuring. Thanks for clearing this up. Regards, Stefan |