STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
224
NAME
SV_BROADCAST () – Wake up all processes sleeping on a synchronization variable.
SYNOPSIS
#include <sys/stream.h>
void SV_BROADCAST(sv_t *svp, int flags);
PARAMETERS
svp
Pointer to the synchronization variable to be broadcast signaled.
flags
Bit field for flags. No flags are currently defined for use in drivers and the flags argument
must be set to zero.
DESCRIPTION
If one or more processes are blocked on the synchronization variable specified by svp, SV_BROADCAST wakes
up all of the blocked processes. Note that synchronization variables are stateless, and therefore calls to
SV_BROADCAST only affect processes currently blocked on the synchronization variable and have no effect on
processes that block on the synchronization variable at a later time.
RETURN VALUES
None
CONSTRAINTS
SV_BROADCAST() can be called from the thread or interrupt context. Only spinlocks of STREAMS/UX user
lock order can be held across this call.