WaitQueues.
Ian Abbott
abbotti at mev.co.uk
Wed Feb 14 21:56:53 EST 2001
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/
More information about the Linuxppc-embedded
mailing list