RE: WaitQueues.

From: Ian Abbott <abbotti@mev.co.uk>
Date: 2001-02-14 10:56:53

On Tuesday, February 13, 2001 3:13 PM, Ralph Blach wrote:
Is there anyway to contionally initialize a wait queue. I
want to test a
wait queue to see if has been initialized not initialize it.  If not,
how do I serialize an access to a set location so that I can
atomically
test and increment that location?
Can't you just initialize it on driver startup or via a C initialiser
(for a statically allocated wait queue) or when you create it (for a
dynamically allocated wait queue)?

Look in <asm/atomic.h> for atomic operations.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help