Index Index for
Section 9s
Index Alphabetical
listing for S
Bottom of page Bottom of
page

slock(9s)

NAME

slock - 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 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.

DESCRIPTION

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.

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.

FILES

<kern/lock.h>

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)

Index Index for
Section 9s
Index Alphabetical
listing for S
Top of page Top of
page