MUTEX_MINE(D3)MUTEX_MINE(D3)NAMEMUTEX_MINE - query whether a mutual exclusion lock is owned by caller
SYNOPSIS
#include <sys/types.h>
#include <sys/ksynch.h>
#include <sys/ddi.h>
boolean_t MUTEX_MINE(mutex_t *lockp);
Arguments
lockp Pointer to the mutual exclusion lock to be queried.
DESCRIPTIONMUTEX_MINE returns a value indicating whether the mutual exclusion lock
specified by lockp is currently held by the calling process.
Return Values
MUTEX_MINE returns TRUE (a non-zero value) if the lock is owned by the
caller or FALSE (zero) if the lock isn't.
Level
Base only.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held
across calls to this function.
REFERENCESMUTEX_ALLOC(D3), MUTEX_INIT(D3), MUTEX_DEALLOC(D3), MUTEX_DESTROY(D3),
MUTEX_LOCK(D3), MUTEX_TRYLOCK(D3), MUTEX_UNLOCK(D3), MUTEX_OWNED(D3).
Page 1