[lkml]   [2001]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectProblem with schedule_timeout..
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
I have to use this function only, so please suggest what can be
the possible reasons.

The above said instance occured when i was developing a device
driver, where i am implementing the poll. The function do_poll() uses this
function for sleeping for specified timeout value. In normal device
drivers it runs as it should, but when i poll on my device then the
function returns immediately. I used the same timeout value for both the

Thanx in advance,
Avinash Vyas,
IIT Kanpur,

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

 \ /
  Last update: 2005-03-22 13:04    [W:0.071 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site