STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
233
NAME
UNLOCK () – Release the previously acquired lock.
SYNOPSIS
#include <sys/stream.h>
void UNLOCK (lock_t *lockptr, spl_t prilev);
PARAMETERS
lockptr
Pointer to lock targeted for release.
prilev
This parameter is ignored as STREAMS always acquires the spinlock at SPL6.
DESCRIPTION
UNLOCK() calls the native HP-UX spinunlock primitive to release the previously acquired lock.
RETURN VALUES
None
CONSTRAINTS
UNLOCK() can be called from thread or interrupt context. Spinlocks can be held across the calls to UNLOCK().