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

pollwakeup(D3)


pollwakeup -- inform polling processes that an event has occurred

Synopsis (Not in current DDI version)

   #include <sys/poll.h>
   #include <sys/ddi.h>

void pollwakeup(struct pollhead *php, short event);

Description

The pollwakeup function provides non-STREAMS character drivers with a way to notify processes polling for the occurrence of an event.

Arguments


php
Pointer to a pollhead structure.

event
Event to notify the process about.

Return values

None

Usage

pollwakeup should be called from the driver for each occurrence of an event. Events are described in chpoll(D2).

The pollhead structure will usually be associated with the driver's private data structure for the particular minor device where the event has occurred.

pollwakeup should only be called with one event at a time.

Context and synchronization

Non-blockable, interrupt, user, or blockable context.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp

References

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