Query: lock_read
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
lock_read(9r) lock_read(9r)NAMElock_read - General: Asserts a complex lock with read-only accessSYNOPSIS#include <kern/lock.h> void lock_read( lock_t lock_structptr );ARGUMENTSSpecifies a pointer to the complex lock structure, lock. This is the lock structure associated with the resource on which you want to assert a complex lock with read-only access. 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.DESCRIPTIONThe lock_read routine asserts a lock with read-only access for the resource associated with the specified lock structure pointer. The lock_read routine allows multiple kernel threads to access the resource read-only at the same time. When a read lock is asserted, the pro- tected resource is guaranteed not to change. To release a previously asserted read lock, call the lock_done routine.NOTESYou must call lock_init (once only) prior to calling lock_read to initialize the lock structure pointer for the resource. A resource, from the kernel module's standpoint, is data that more than one kernel thread can manipulate. You can store the resource in global variables and in data structure members.RETURN VALUESNoneFILESSEE ALSORoutines: lock_done(9r), lock_terminate(9r), lock_try_read(9r), lock_try_write(9r), lock_write(9r) Data Structures: lock(9s) lock_read(9r)
Related Man Pages |
---|
lock_done(9r) - osf1 |
lock(9s) - osf1 |
lock_read(9r) - osf1 |
simple_lock(9r) - osf1 |
simple_lock_try(9r) - osf1 |
Similar Topics in the Unix Linux Community |
---|
lock file! |
setting file access restriction |
Text book / online resource for learning to program at system/kernel level |
How to lock file system access |
Linux lock problem |