DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

unfreezestr(D3str)


unfreezestr -- unfreeze the state of a stream

Synopsis (Not in ODDI)

   #include <sys/types.h>
   #include <sys/stream.h>
   #include <sys/ddi.h>
   

void unfreezestr(queue_t *q, pl_t pl);

Description

The unfreezestr function unfreezes the state of the stream containing the queue specified by q and sets the interrupt priority level to the value specified by pl. Unfreezing the stream allows continuation of all activities that were forced to wait while the stream was frozen.

Arguments


q
Pointer to a message queue.

pl
The pl(D5) interrupt priority level to be set (if the implementation requires that interrupts be blocked in order to prevent deadlock) after unfreezing the stream.

Return values

None

Usage

pl should be the value that was returned from the corresponding call to freezestr(D3str) unless the caller has a specific need to set some other interrupt priority level. Although portable drivers must always specify an appropriate pl argument, implementations that do not require the interrupt priority level to be raised while the stream is frozen may choose to ignore this argument.

Context

Base or Interrupt.

Synchronization constraints

Does not block.

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

Examples

See insq(D3str) for an example of unfreezestr.

Hardware applicability

All

Version applicability

ddi: 3, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

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