SLEEP_TRYLOCK(D3)

SLEEP_TRYLOCK - try to acquire a sleep lock

As shipped in IRIX 6.5.15. Unchanged since IRIX 6.5.

NAME
     SLEEP_TRYLOCK - try to acquire a sleep lock

SYNOPSIS
     #include <sys/types.h>
     #include <sys/ksynch.h>
     #include <sys/ddi.h>
     boolean_t SLEEP_TRYLOCK(sleep_t *lockp);

   Arguments
     lockp     Pointer to the sleep lock to be acquired.

DESCRIPTION
     If the lock specified by lockp is immediately available (can be acquired
     without sleeping) the SLEEP_TRYLOCK function acquires the lock.  If the
     lock is not immediately available, SLEEP_TRYLOCK returns without
     acquiring the lock.

   Return Values
     SLEEP_TRYLOCK 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, read/write locks, and sleep locks may be held
     across calls to this function.

REFERENCES
     SLEEP_ALLOC(D3), SLEEP_INIT(D3), SLEEP_DEALLOC(D3), SLEEP_DESTROY(D3),
     SLEEP_LOCK(D3), SLEEP_LOCK_SIG(D3), SLEEP_LOCKAVAIL(D3), SLEEP_UNLOCK(D3)