DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer 5

MPSTR_QLOCK(D3str)


MPSTR_QLOCK, MPSTR_QRELE -- lock a STREAMS queue for mutual exclusion

Synopsis (Not in DDI)

   #include stream.h
   

s=MPSTR_QLOCK(queue_t q); /* critical code that access STREAMS queue */ MPSTR_QRELE(queue_t q, int s);

Description

The MPSTR_QLOCK(D3str) and MPSTR_QRELE(D3str) macros lock a STREAMS queue for mutual exclusion in multithreaded drivers.

Arguments


q
the queue to be locked

s
the spl(D3oddi) level, returned by the MPSTR_QLOCK( ) function, to be restored by the MPSTR_QRELE( ) function. If the value of s is set to -1, then MPSTR_QRELE( ) does not restore the spl value; the driver must restore the spl value after the call to MPSTR_QRELE( ) completes.

Usage

Context and synchronization

context

Hardware applicability

All

Version applicability

oddi: 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

References

lockb(D3oddi)

``ODDI driver interface version for SCO OpenServer 5'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005