RW_TRYWRLOCK(D3)
RW_TRYWRLOCK - try to acquire a read/write lock in write mode
Showing IRIX 6.5.30 (default release). Unchanged since IRIX 6.5.
NAME RW_TRYWRLOCK - try to acquire a read/write lock in write mode SYNOPSIS #include <sys/ksynch.h> #include <sys/ddi.h> boolean_t RW_TRYWRLOCK(rwlock_t *lockp); Arguments lockp Pointer to the read/write lock to be acquired. DESCRIPTION If the lock specified by lockp is immediately available (can be acquired in write mode without sleeping) the RW_TRYWRLOCK function acquires the lock. If the lock is not immediately available, RW_TRYWRLOCK returns without acquiring the lock. Return Values RW_TRYWRLOCK returns TRUE (a non-zero value) if the lock is successfully acquired or FALSE (zero) if the lock is not acquired. USAGE Level Base or Interrupt. Synchronization Constraints Does not sleep. Driver-defined basic locks, and sleeping locks may be held across calls to this function. REFERENCES RW_ALLOC(D3), RW_INIT(D3), RW_DEALLOC(D3), RW_DESTROY(D3), RW_RDLOCK(D3), RW_WRLOCK(D3), RW_TRYRDLOCK(D3), RW_UNLOCK(D3)