Re: Problem with schedule_timeout..

From: Alan Cox (
Date: Thu Feb 08 2001 - 07:38:22 EST

> I am a relatively newb in the kenel programming. I am using the
> function "schedule_timeout" for sleeping for some time. But in some cases
> the function returns after the specified timeout but in some instance it
> returns immediately, without decrementing the timeout value passed as the
> argument.

Make sure you have the task set to be in interruptible or uninterrutible
sleep before you do the schedule_timeout

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:11 EST