Checks whether a simple or complex lock is owned by the caller.
#include <sys/lock_def.h>
boolean_t lock_mine (lock_addr) void *lock_addr;
lock_addr | Specifies the address of the lock word to check. |
The lock_mine kernel service checks whether the specified simple or complex lock is owned by the calling kernel thread. Because a complex lock held in shared-read mode has no owner, the service returns FALSE in this case. This kernel service is provided to assist with debugging.
The lock_mine kernel service can be called from the process environment only.
TRUE | Indicates that the calling kernel thread owns the lock. |
FALSE | Indicates that the calling kernel thread does not own the lock, or that a complex lock is held in shared-read mode. |
The lock_mine kernel service is part of the Base Operating System (BOS) Runtime.
The lock_init kernel service, lock_islocked kernel service, lock_read kernel service, lock_write kernel service, simple_lock kernel service.
Understanding Locking and Locking Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts