lkml.org 
[lkml]   [1999]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectIdle loop
Date
All,
I'm trying to implement an idle loop in some code (lower tty driver). In
actual fact, I'm trying to implement locking. In a nutshell, if I see the
lock flag has been set, I want to sit and wait until it becomes unset.
Trouble is, when I try to use schedule() I get a panic. Of course, when I
comment out the schedule() the machine hangs because the loop is now busy.
Is there any support for critical sections in this sort of driver. Spinlocks
don't seem to be working in this instance.

Any takers?
L

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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