osf1 man page for lock_init

Query: lock_init

OS: osf1

Section: 9r

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

lock_init(9r)															     lock_init(9r)

NAME
lock_init - General: Initializes a complex lock
SYNOPSIS
#include <kern/lock.h> void lock_init( lock_t lock_structptr, boolean_t can_sleep );
ARGUMENTS
Specifies a pointer to the complex lock structure, lock. The lock 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 complex lock mechanism. Specifies a Boolean value that indicates whether to allow kernel threads to block (sleep) if the complex lock is asserted. You can pass to this argument only the value TRUE (allow kernel threads to block if the lock is asserted).
DESCRIPTION
The lock_init routine initializes a complex lock. You identify this lock by declaring a pointer to a complex lock structure and passing it as the first argument. The complex lock structure pointer must be initialized before you can assert read and write operations on the com- plex lock.
RETURN VALUES
None
FILES
SEE ALSO
Routines: lock_done(9r), lock_read(9r), lock_terminate(9r), lock_try_read(9r), lock_try_write(9r), lock_write(9r) Data Structures: lock(9s) lock_init(9r)
Related Man Pages
decl_simple_lock_data(9r) - osf1
lock_write(9r) - osf1
simple_lock_init(9r) - osf1
simple_lock_terminate(9r) - osf1
simple_lock_try(9r) - osf1
Similar Topics in the Unix Linux Community
lock time delay
composing a variable name from another variable;
help with C programme to lock remote resources
Help me to lock my system.
Problem with screen lock