slock - General: Contains simple lock-specific information
The slock data structure is an opaque data structure; that
is, its associated members are referenced and manipulated
by the operating system and not by the user of the simple
lock method. Therefore, this reference page omits a
description of the slock data structure's associated members.
The slock data structure is the simple spin lock structure
that contains simple lock-specific information. The user
of the simple lock method declares a slock data structure
by calling the decl_simple_lock_data routine. In subsequent
calls to simple_lock, simple_lock_init, simple_lock_try,
and simple_unlock, the caller passes the
address of the previously declared slock data structure.
The header file <lock.h> shows typedef statements that
assign the alternate name simple_lock_data_t for the simple
spin lock structure and simple_lock_t for a pointer to
the simple spin lock structure.
SEE ALSO
Routines: decl_simple_lock_data(9r), simple_lock(9r), simple_lock_init(9r), simple_lock_terminate(9r), simple_lock_try(9r), simple_unlock(9r)
Data Structures: lock(9s)
slock(9s)
[ Back ] |