LOCK_DEALLOC(D3)LOCK_DEALLOC(D3)NAME
LOCK_DEALLOC, LOCK_DESTROY - basic lock de-initialization
SYNOPSIS
#include <sys/types.h>
#include <sys/ksynch.h>
#include <sys/ddi.h>
void LOCK_DEALLOC(lock_t *lockp);
void LOCK_DESTROY(lock_t *lockp);
Arguments
lockp Pointer to the basic lock to be deallocated or destroyed.
DESCRIPTIONLOCK_DEALLOC uninitializes and deallocates the basic lock specified by
lockp. LOCK_DESTROY uninitializes the (static) basic lock specified by
lockp.
Return Values
None.
USAGE
Attempting to deallocate or destroy a lock that is currently locked or is
being waited for is an error and will result in undefined behavior.
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks (other than the one being
deallocated/destroyed), read/write locks, and sleep locks may be held
across calls to this function.
SEE ALSOLOCK(D3), LOCK_ALLOC(D3), TRYLOCK(D3), UNLOCK(D3).
Page 1