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

MPSTR_STPLOCK(D3str)


MPSTR_STPLOCK, MPSTR_STPRELE -- lock Stream head in multithreaded code

Synopsis (Not in DDI)

   #include stream.h
   

MPSTR_STPLOCK(struct stdata *stp); /* critical code section that accesses Stream head */ MPSTR_STPRELE(struct stdata *stp, int s);

Description

The MPSTR_STPLOCK(D3str) and MPSTR_STPRELE(D3str) macros provide locks for critical code sections that access a Stream head.

Arguments


stp
the Stream head to be locked.

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

Usage

Context and synchronization

context

Hardware applicability

All

Version applicability

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

Differences between versions

References

lockb(D3oddi), MPSTR_QLOCK(D3str), sdistributed(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