Lines Matching full:poll
6 .TH POLL 4D "January 10, 2020"
8 poll \- driver for fast poll on many file descriptors
12 int fd = open("/dev/poll", O_RDWR);
24 Open file descriptor that refers to the \fB/dev/poll\fR driver.
33 \fB/dev/poll\fR
73 The \fB/dev/poll\fR driver is a special driver that enables you to monitor
74 multiple sets of polled file descriptors. By using the \fB/dev/poll\fR
75 driver, you can efficiently poll large numbers of file descriptors. Access to
76 the \fB/dev/poll\fR driver is provided through \fBopen\fR(2), \fBwrite\fR(2),
80 Writing an array of \fBpollfd\fR struct to the \fB/dev/poll\fR driver has the
81 effect of adding these file descriptors to the monitored \fBpoll\fR file
83 descriptor sets, open the \fB/dev/poll\fR driver multiple times. Each \fBfd\fR
85 \fBsys/poll.h\fR):
100 \fBevents\fR field indicates the interested \fBpoll\fR \fBevents\fR on the file
109 The \fBDP_POLL\fR ioctl is used to retrieve returned \fBpoll\fR \fBevents\fR
130 which poll information can be obtained. If there is no interested \fBevents\fR
134 the call blocks until an interested \fBpoll\fR \fBevents\fR is available or the
143 \fBpoll\fR \fBevents\fR. The \fBrevents\fR field contains the \fBevents\fR
156 The following example shows how \fB/dev/poll\fR may be used.
165 if ((wfd = open("/dev/poll", O_RDWR)) < 0) {
196 perror("/dev/poll ioctl DP_POLL failed");
236 perror("/dev/poll ioctl DP_ISPOLLED failed");
288 \fB/dev/poll\fR.
355 The \fB/dev/poll\fR API is particularly beneficial to applications that poll a
360 When using the \fB/dev/poll\fR driver, you should remove a closed file
361 descriptor from a monitored poll set. Failure to do so may result in a
370 The \fB/dev/poll\fR driver caches a list of polled file descriptors, which are
371 specific to a process. Therefore, the \fB/dev/poll\fR file descriptor of a
374 inherited \fB/dev/poll\fR file descriptor. Any attempt to write or do ioctl by
376 should close the inherited \fB/dev/poll\fR file descriptor and open its own if
380 The \fB/dev/poll\fR driver does not yet support polling. Polling on a
381 \fB/dev/poll\fR file descriptor will result in \fBPOLLERR\fR being returned in