RW_DEALLOC(D3)

RW_DEALLOC, RW_DESTROY - read/write lock de-initialization

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     RW_DEALLOC, RW_DESTROY - read/write lock de-initialization

SYNOPSIS
     #include <sys/ksynch.h>
     #include <sys/ddi.h>
     void RW_DEALLOC(rwlock_t *lockp);

     void RW_DESTROY(rwlock_t *lockp);

   Arguments
     lockp     Pointer to the sleep lock to be deallocated.

DESCRIPTION
     RW_DEALLOC de-initializes and deallocates the lock specified by lockp.
     RW_DESTROY de-initializes the lock specified by lockp.

   Return Values
     None

USAGE
     Attempting to de-initialize or deallocate a lock that is currently locked
     or is being waited for is an error and results in undefined behavior.

   Level
     Base or Interrupt.

   Synchronization Constraints
     Does not sleep.

     Driver-defined basic locks, and sleeping locks (other than the one being
     deallocated or deinitialized), may be held across calls to these
     functions.

REFERENCES
     RW_ALLOC(D3), RW_INIT(D3), RW_RDLOCK(D3), RW_WRLOCK(D3),
     RW_TRYRDLOCK(D3), RW_TRYWRLOCK(D3), RW_UNLOCK(D3)