Initializes a simple lock.
#include <sys/lock_def.h>
void simple_lock_init ( lock_addr)
simple_lock_t lock_addr;
Item | Description |
---|---|
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.