Re: Wait queue question

2 messages, 2 authors, 2001-02-15 · open the first message on its own page

Re: Wait queue question

From: Roland Dreier <hidden>
Date: 2001-02-14 17:30:18

    Ralph> If I have a wait queue thats I am using to wake up a device
    Ralph> driver read from an interrupt service routine.  If I get
    Ralph> three interrupt and three wake_up_interrables, will I need
    Ralph> to execute three sleep_ons to get the wait queue back to
    Ralph> the null state, or is it just back after the first
    Ralph> sleep_on?

You really don't want to use sleep_on() any more (Linux wants to
remove it out for 2.5).  Take a look at

<http://lwn.net/2001/0201/a/sleep-fix.php3>

for a safer way to sleep, or use the wait_event macro (in
linux/sched.h).

Roland

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Wait queue question

From: Ralph Blach <hidden>
Date: 2001-02-15 13:59:06

Roland,

Ok, but were is an example of how to use a wait_event macro.  I dont see
it in any of the documentation.

Chip
Roland Dreier wrote:
    Ralph> If I have a wait queue thats I am using to wake up a device
    Ralph> driver read from an interrupt service routine.  If I get
    Ralph> three interrupt and three wake_up_interrables, will I need
    Ralph> to execute three sleep_ons to get the wait queue back to
    Ralph> the null state, or is it just back after the first
    Ralph> sleep_on?

You really don't want to use sleep_on() any more (Linux wants to
remove it out for 2.5).  Take a look at

<http://lwn.net/2001/0201/a/sleep-fix.php3>

for a safer way to sleep, or use the wait_event macro (in
linux/sched.h).

Roland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help