#include <sys/lock_def.h>
void simple_lock_init (lock_addr) simple_lock_t lock_addr;
lock_addr | Specifies the address of the lock word. |
The simple_lock_init kernel service initializes a simple lock. This kernel service must be called before the simple lock is used. The simple lock must previously have been allocated with the lock_alloc kernel service.
The simple_lock_init kernel service can be called from the process environment only.
The simple_lock_init kernel service may be called either the process or interrupt environments.
The simple_lock_init kernel service has no return values.
The simple_lock_init kernel service is part of the Base Operating System (BOS) Runtime.
The lock_alloc kernel service, lock_free kernel service, simple_lock kernel service, simple_lock_try kernel service, simple_unlock kernel service.
Understanding Locking and Locking Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts