slock(9s)slock(9s)NAMEslock - General: Contains simple lock-specific information
SYNOPSIS
The slock data structure is an opaque data structure; that is, its
associated members are referenced and manipulated by the operating sys‐
tem and not by the user of the simple lock method. Therefore, this ref‐
erence page omits a description of the slock data structure's associ‐
ated members.
DESCRIPTION
The slock data structure is the simple spin lock structure that con‐
tains simple lock-specific information. The user of the simple lock
method declares a slock data structure by calling the decl_sim‐
ple_lock_data routine. In subsequent calls to simple_lock, sim‐
ple_lock_init, simple_lock_try, and simple_unlock, the caller passes
the address of the previously declared slock data structure.
NOTES
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.
FILESSEE ALSO
Routines: decl_simple_lock_data(9r), simple_lock(9r), sim‐
ple_lock_init(9r), simple_lock_terminate(9r), simple_lock_try(9r), sim‐
ple_unlock(9r)
Data Structures: lock(9s)slock(9s)