On Mon, Jul 13, 2009 at 9:16 PM, Arun raj<[email protected]> wrote:
> Dear All,
>
> In my driver we are waiting for some event with wait_event_interruptible.
> Some times wait_event_interruptible returnsĀ  512.
>
> Please let me know what could be the cause and how to solveĀ  this.

Hi...

That means -ERESTARTSYS, and to quote from the related comment of
wait_event_interruptible function:
"* The function will return -ERESTARTSYS if it was interrupted by a
  * signal and 0 if @condition evaluated to true.
  */"

So IMO, check if you need act on this occassion....and simply retry.
Or pick wait_event to ignore signal.

CMIIW people...
-- 
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to