xref: /titanic_52/usr/src/man/man9f/pollwakeup.9f (revision 2bc987325e3ded1865bff043128661815c4690b9)
te
Copyright 1989 AT&T
Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
POLLWAKEUP 9F "Jan 16, 2006"
NAME
pollwakeup - inform a process that an event has occurred
SYNOPSIS

#include <sys/poll.h>



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

Architecture independent level 1 (DDI/DKI).

PARAMETERS
php

Pointer to a pollhead structure.

event

Event to notify the process about.

DESCRIPTION

The pollwakeup() function wakes a process waiting on the occurrence of an event. It should be called from a driver for each occurrence of an event. The pollhead structure will usually be associated with the driver's private data structure associated with the particular minor device where the event has occurred. See chpoll(9E) and poll(2) for more detail.

CONTEXT

The pollwakeup() function can be called from user, interrupt, or kernel context.

SEE ALSO

poll(2), chpoll(9E)

Writing Device Drivers

NOTES

Driver defined locks should not be held across calls to this function.