Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ SLEEP_TRYLO(D3DK) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SLEEP_TRYLOCK(D3DK)  —  

NAME

SLEEP_TRYLOCK − try to acquire a sleep lock .IX \f4SLEEP_TRYLOCK\fP(D3DK)

SYNOPSIS

#include <sys/types.h>
#include <sys/ksynch.h>
bool_t SLEEP_TRYLOCK(sleep_t ∗lockp);

ARGUMENTS

lockpPointer to the sleep lock to be acquired. 

DESCRIPTION

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

RETURN VALUE

SLEEP_TRYLOCK returns TRUE (a non-zero value) if the lock is successfully acquired or FALSE (zero) if the lock is not acquired. 

LEVEL

Base or Interrupt. 

NOTES

Does not sleep. 

Driver defined basic locks, read/write locks, and sleep locks may be held across calls to this function. 

SEE ALSO

SLEEP_ALLOC(D3DK), SLEEP_DEALLOC(D3DK), SLEEP_LOCK(D3DK), SLEEP_LOCK_SIG(D3DK), SLEEP_LOCKAVAIL(D3DK), SLEEP_LOCKOWNED(D3DK), SLEEP_UNLOCK(D3DK)

DDI/DKI

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