query whether a sleep lock is held by the caller
bool_t SLEEP_LOCKOWNED(sleep_t *lockp);
SLEEP_LOCKOWNED returns an indication of whether the sleep lock
specified by lockp is currently held by the calling context.
Pointer to the sleep lock to be queried.
SLEEP_LOCKOWNED returns TRUE (a non-zero value) if the lock
is currently held by the calling context or FALSE (zero) if the lock is
not currently held by the calling context.
SLEEP_LOCKOWNED is intended for use only within ASSERT
and other code that is
conditionally compiled under the DEBUG compilation option.
The SLEEP_LOCKOWNED function is only defined under the DEBUG
compilation option, and therefore
calls to SLEEP_LOCKOWNED will not compile when DEBUG
is not defined.
Context and synchronization
Non-blockable, user or blockable
5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
``Sleep locks'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005