.TH pollwakeup() "" "" "DDI/DKI Kernel Routine"
.PC "Inform polling process that an event has occurred"
.B "#include <sys/poll.h>"
\fBvoid pollwakeup(\fIhead\^\fB, \fIevent\^\fB)\fR
\fBstruct pollhead *\fIhead\^\fB; short \fIevent\^\fB;\fR
.PP
.B pollwakeup()
notifies all processes that are polling for
.IR event .
It should be used only by drivers that use the DDI/DKI interface.
A driver should call this function for each occurrence
.IR event .
A process can register for notification by invoking the \*(CO system call
.BR poll() .
.PP
.I head
points to the
.B pollhead
structure for for the minor device.
It must have been allocated with the function
.BR phalloc() .
.SH "See Also"
.B
DDI/DKI kernel routines,
phalloc(),
phfree()
.R
.br
\*(CO Lexicon:
.B
poll()
.R
.SH Notes
.B pollwakeup()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
