RW_DEALLOC(D3DK) —
NAME
RW_DEALLOC − deallocate an instance of a read/write lock .IX \f4RW_DEALLOC\fP(D3DK)
SYNOPSIS
#include <sys/types.h>
#include <sys/ksynch.h>
void RW_DEALLOC(rwlock_t ∗lockp);
ARGUMENTS
lockpPointer to the read/write lock to be deallocated.
DESCRIPTION
RW_DEALLOC deallocates the read/write lock specified by lockp.
RETURN VALUE
None.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Attempting to deallocate a lock that is currently locked or is being waited for is an error and will result in undefined behavior.
Driver defined locks, read/write locks (other than the one being deallocated), and sleep locks may be held across calls to this function.
SEE ALSO
RW_ALLOC(D3DK), RW_RDLOCK(D3DK), RW_TRYRDLOCK(D3DK), RW_TRYWRLOCK(D3DK), RW_UNLOCK(D3DK), RW_WRLOCK(D3DK)
DDI/DKI