DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
HDK Technical Reference

Sleep locks

Sleep locks are DDI synchronization primitives that are used for serializing access to a shared resource or critical code region when spin locks are inappropriate.

Note the following semantics when using the sleep locks:

Sleep locks are supported for all DDI versions beginning with version 5 and 5mp.


SLEEP_ALLOC(D3)
allocate and initialize a sleep lock

SLEEP_LOCK(D3)
acquire a sleep lock

SLEEP_LOCK_SIG(D3)
acquire a sleep lock

SLEEP_TRYLOCK(D3)
try to allocate a sleep lock

SLEEP_LOCKAVAIL(D3)
query whether a sleep lock is available

SLEEP_LOCKOWNED(D3)
query whether a sleep lock is held by the caller

SLEEP_DEALLOC(D3)
deallocate an instance of a sleep lock

pri(D5)
priorities for sleep locks

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005