Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ SLEEP_LOCKAVAIL(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       SLEEP_LOCKAVAIL(D3)                              SLEEP_LOCKAVAIL(D3)


       NAME
             SLEEP_LOCKAVAIL - query whether a sleep lock is available

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

          Arguments
             lockp     Pointer to the sleep lock to be queried.

       DESCRIPTION
             SLEEP_LOCKAVAIL returns an indication of whether the sleep
             lock specified by lockp is currently available.

          Return Values
             SLEEP_LOCKAVAIL returns TRUE (a non-zero value) if the lock
             was available or FALSE (zero) if the lock was not available.

       USAGE
             The state of the lock may change and the value returned may no
             longer be valid by the time the caller sees it.  The caller is
             expected to understand that this is ``stale data'' and is
             either using it as a heuristic or has arranged for the return
             value to be meaningful by other means.

          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_DEALLOC(D3), SLEEP_LOCK(D3),
             SLEEP_LOCK_SIG(D3), SLEEP_LOCKOWNED(D3), SLEEP_TRYLOCK(D3),
             SLEEP_UNLOCK(D3)

       NOTICES
          Portability
             All processors




                           Copyright 1994 Novell, Inc.               Page 1













      SLEEP_LOCKAVAIL(D3)                              SLEEP_LOCKAVAIL(D3)


         Applicability
            ddi: 5, 5mp, 6, 6mp, 7, 7mp














































                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026