Home
last modified time | relevance | path

Searched full:poll (Results 1 – 25 of 1096) sorted by relevance

12345678910>>...44

/illumos-gate/usr/src/man/man4d/
H A Dpoll.4d6 .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
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dpoll_impl.h36 * Caching Poll Subsystem:
38 * Each kernel thread (1), if engaged in poll system call, has a reference to
41 * calls to poll. A bitmap (4) is stored inside the poll cache, where each
44 * examined on the next poll invocation. The pollstate_t also contains a list
60 * | /dev/poll tbl | |
77 * Both poll system call and /dev/poll use the pollcache_t structure
78 * definition and the routines managing the structure. But poll(2) and
79 * /dev/poll have their own copy of the structures. The /dev/poll driver
84 #include <sys/poll.h>
114 pollfd_t *pcs_pollfd; /* cached poll lists */
[all …]
H A Dpoll.h46 * the poll arrays.
49 int fd; /* file desc to poll */
71 * Non-testable poll events (may not be specified in events field,
80 * events to control /dev/poll behavior.
82 #define POLLREMOVE 0x0800 /* remove cached /dev/poll fd */
83 #define POLLONESHOT 0x1000 /* /dev/poll should one-shot this fd */
84 #define POLLET 0x2000 /* edge-triggered /dev/poll fd */
89 * Additional private poll flags supported only by strpoll().
90 * Must be bit-wise distinct from the above POLL flags.
95 #define POLLCLOSED 0x8000 /* a (cached) poll fd has been closed */
[all …]
H A Dmac_soft_ring.h117 /* Teardown, poll disable control ops */
204 /* Poll thread signalled count */
206 /* Poll thread busy */
208 /* SRS drains, stays in poll mode but doesn't poll */
213 * poll mode but doesn't do polling.
218 /* Found packets in last poll so try and poll again */
221 * Packets in queue but poll thread not allowed to process so
226 * Poll thread has nothing to do and H/W has nothing so
231 * Poll thread has nothing to do and worker thread was already
232 * running so it can decide to reenable interrupt or poll again.
[all …]
H A Ddevpoll.h42 /* /dev/poll ioctl */
44 #define DP_POLL (DPIOC | 1) /* poll on fds cached via /dev/poll */
45 #define DP_ISPOLLED (DPIOC | 2) /* is this fd cached in /dev/poll */
46 #define DP_PPOLL (DPIOC | 3) /* ppoll on fds cached via /dev/poll */
49 #define DEVPOLLSIZE 1000 /* /dev/poll table size increment */
52 * /dev/poll DP_POLL ioctl format
/illumos-gate/usr/src/man/man2/
H A Dpoll.248 .TH POLL 2 "Aug 23, 2001"
50 poll \- input/output multiplexing
54 #include <poll.h>
56 \fBint\fR \fBpoll\fR(\fBstruct pollfd\fR \fIfds[]\fR, \fBnfds_t\fR \fInfds\fR, \fBint\fR \fItimeout…
64 The \fBpoll()\fR and \fBppoll()\fR functions provides applications with a
66 each member of the array pointed to by \fIfds\fR, \fBpoll()\fR and \fBppoll()\fR
69 \fInfds\fR. The \fBpoll()\fR and \fBppoll()\fR functions identify those file
74 The \fBppoll()\fR function behaves identically to \fBpoll()\fR, except as follows:
80 nanoseconds in an argument of type \fBstruct timespec\fR, where as \fBpoll()\fR
216 is set to 0 in that entry on return from \fBpoll()\fR and \fBppoll()\fR.
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dpoll.c77 kstat_named_t polllistmiss; /* failed to find a cached poll list */
102 /* Contention lock & list for preventing deadlocks in recursive /dev/poll. */
118 * The per-thread poll state consists of
129 * poll when a cached fd is closed. This is protected by uf_lock.
148 * Whenever possible the design relies on the fact that the poll cache state
149 * is per thread thus for both poll and exit it is self-synchronizing.
154 * The two key locks in poll proper is ps_lock and pc_lock.
156 * The ps_lock is used for synchronization between poll, (lwp_)exit and close
158 * This lock is held through most of poll() except where poll sleeps
160 * of poll.
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dpoll_solaris.c33 #include <poll.h>
42 "[-?\n@(#)$Id: poll (AT&T Labs Research) 2009-05-14 $\n]"
45 "[+NAME? poll - input/output multiplexing]"
46 "[+DESCRIPTION?The poll command provides applications with a mechanism "
49 "poll examines the given file descriptor in the subscript \b.fd\b "
51 "The poll command identifies those file descriptors on which an "
109 "revents is set to 0 in that entry on return from poll.]"
111 "[+?The results of the poll query are stored in the revents "
112 "member in the \bvar\b structure. POLL*-strings are set in the \brevents\b "
115 "the poll command returns. The event flags "
[all …]
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c26 #include <poll.h>
37 * poll system call and the DP_POLL ioctl on /dev/poll.
45 * java.nio.channels.Selector select logic is implemented via /dev/poll.
46 * The selector opens /dev/poll, writes the file descriptors it wants to
51 * according to man poll.7d the ioctl should block until events are ready,
64 * the implementation for poll.2 as well.
76 * blocked processing a poll request or a DP_POLL ioctl. The test spawns
79 * a second thread that issues poll / DP_POLL on an fd set that will
168 debug_log("POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); in poll_wrapper()
170 ret = poll(fds, nfds, timeout); in poll_wrapper()
[all …]
/illumos-gate/usr/src/man/man9s/
H A Dusb_ep_descr.9s96 USB_EP_MIN_LOW_INTR_INTRVL Min poll interval, lowspd intr e/p
97 USB_EP_MAX_LOW_INTR_INTRVL Max poll interval, lowspd intr e/p
99 USB_EP_MIN_FULL_INTR_INTRVL Min poll interval, fullspd intr e/p
100 USB_EP_MAX_FULL_INTR_INTRVL Max poll interval, fullspd intr e/p
105 USB_EP_MIN_HIGH_INTR_INTRVL Min poll interval, highspd intr e/p
106 USB_EP_MAX_HIGH_INTR_INTRVL Max poll interval, highspd intr e/p
108 USB_EP_MIN_FULL_ISOCH_INTRVL Min poll interval, fullspd isoc e/p
109 USB_EP_MAX_FULL_ISOCH_INTRVL Max poll interval, fullspd isoc e/p
111 USB_EP_MIN_HIGH_ISOCH_INTRVL Min poll interval, highspd isoc e/p
112 USB_EP_MAX_HIGH_ISOCH_INTRVL Max poll interval, highspd isoc e/p
H A Dusb_intr_req.9s39 uint_t intr_timeout; /* only with ONE TIME POLL, in secs */
153 B) One time poll, no timeout, callback when data is
156 C) One time poll, with timeout, callback when data
159 D) One time poll, no timeout, one callback, unblock
162 E) One time poll, timeout, one callback, unblock when
187 new data buffer for each poll. intr_len specifies
188 the amount of 'periodic data' for each poll.
/illumos-gate/usr/src/uts/common/io/
H A Ddevpoll.c56 static dp_entry_t **devpolltbl; /* dev poll entries */
60 int devpoll_init; /* is /dev/poll initialized already */
86 dppoll, /* poll */
117 "/dev/poll driver",
136 * The /dev/poll driver shares most of its code with poll sys call whose
137 * code is in common/syscall/poll.c. In poll(2) design, the pollcache
140 * poll(2) design, no lwp will ever need to grow bitmap of other lwp.
141 * This assumption is not true for /dev/poll; hence the need for extra
144 * To allow more parallelism, each /dev/poll file descriptor (indexed by
147 * /dev/poll fd. However, we prevent writes from being starved by giving
[all …]
/illumos-gate/usr/src/cmd/ast/libshell/amd64/FEATURE/
H A Dpoll3 /* : : generated from contrib/ast/src/cmd/ksh93/features/poll by iffe version 2012-07-17 : : */
67 #define _hdr_poll 1 /* #include <poll.h> ok */
69 #define _sys_poll 1 /* #include <sys/poll.h> ok */
72 #define _lib_poll 1 /* poll() in default lib(s) */
89 # define poll _SYS_poll
95 # include <poll.h>
98 # include <sys/poll.h>
102 # undef poll
103 extern __MANGLE__ int poll __PROTO__((struct pollfd*,unsigned long,int));
/illumos-gate/usr/src/cmd/ast/libshell/i386/FEATURE/
H A Dpoll3 /* : : generated from contrib/ast/src/cmd/ksh93/features/poll by iffe version 2012-07-17 : : */
67 #define _hdr_poll 1 /* #include <poll.h> ok */
69 #define _sys_poll 1 /* #include <sys/poll.h> ok */
72 #define _lib_poll 1 /* poll() in default lib(s) */
89 # define poll _SYS_poll
95 # include <poll.h>
98 # include <sys/poll.h>
102 # undef poll
103 extern __MANGLE__ int poll __PROTO__((struct pollfd*,unsigned long,int));
/illumos-gate/usr/src/cmd/ast/libshell/sparc/FEATURE/
H A Dpoll3 /* : : generated from contrib/ast/src/cmd/ksh93/features/poll by iffe version 2012-07-17 : : */
67 #define _hdr_poll 1 /* #include <poll.h> ok */
69 #define _sys_poll 1 /* #include <sys/poll.h> ok */
72 #define _lib_poll 1 /* poll() in default lib(s) */
89 # define poll _SYS_poll
95 # include <poll.h>
98 # include <sys/poll.h>
102 # undef poll
103 extern __MANGLE__ int poll __PROTO__((struct pollfd*,unsigned long,int));
/illumos-gate/usr/src/cmd/ast/libshell/sparcv9/FEATURE/
H A Dpoll3 /* : : generated from contrib/ast/src/cmd/ksh93/features/poll by iffe version 2012-07-17 : : */
67 #define _hdr_poll 1 /* #include <poll.h> ok */
69 #define _sys_poll 1 /* #include <sys/poll.h> ok */
72 #define _lib_poll 1 /* poll() in default lib(s) */
89 # define poll _SYS_poll
95 # include <poll.h>
98 # include <sys/poll.h>
102 # undef poll
103 extern __MANGLE__ int poll __PROTO__((struct pollfd*,unsigned long,int));
/illumos-gate/usr/src/man/man8/
H A Dtnd.812 \fB/usr/sbin/tnd\fR [\fB-p\fR \fIpoll-interval\fR]
84 \fB\fB-p\fR \fIpoll-interval\fR\fR
87 Set poll interval to \fIpoll-interval\fR seconds. The default
88 \fIpoll-interval\fR is 1800 seconds (30 minutes).
93 \fBExample 1 \fRChanging the Poll Interval
97 interval in the SMF repository. At the next boot, the \fBtnd\fR poll interval
111 repository. At the next boot, the \fBtnd\fR poll interval remains the default,
H A Drtquery.826 or poll command. The routing information in any routing response packets
31 specified, \fBrtquery\fR uses the poll command, an undocumented extension to
32 the RIP protocol supported by \fBGateD\fR. When querying \fBGateD\fR, the poll
36 the poll command, but recognizes requests coming from \fBrtquery\fR and so
75 Uses the poll command to request full routing information from \fBGateD\fR.
/illumos-gate/usr/src/test/os-tests/tests/uccid/
H A Dyk-poll.c18 * through an APDU while using poll(2) to check device readyness.
29 #include <poll.h>
63 ret = poll(pfds, 1, 0); in main()
65 err(EXIT_FAILURE, "poll didn't return 1, returned %d " in main()
79 ret = poll(pfds, 1, -1); in main()
81 err(EXIT_FAILURE, "poll didn't return 1, returned %d " in main()
97 ret = poll(pfds, 1, 0); in main()
99 err(EXIT_FAILURE, "poll didn't return 1, returned %d " in main()
/illumos-gate/usr/src/man/man3head/
H A Dpoll.h.3head46 .TH POLL.H 3HEAD "Sep 9, 2004"
48 poll.h, poll \- definitions for the \fBpoll()\fR function
52 #include <\fBpoll.h\fR>
58 The <\fBpoll.h\fR> header defines the \fBpollfd\fR structure, which includes
89 The <\fBpoll.h\fR> header defines the following type through \fBtypedef\fR:
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/
H A Dsun_solaris_builtin_poll.sh28 # Test whether the ksh93/poll builtin works as expected
45 builtin -f libshell.so.1 poll || err_exit "poll builtin not found."
55 cat /dev/zero | { redirect 5<&0 ; poll -e d1.res -t 5. d1.u ; } || err_exit "poll returned non-zero…
64 { poll -e d1.res -t 5. d1.u ; } 5</dev/null 5>/dev/null || err_exit "poll returned non-zero exit co…
/illumos-gate/usr/src/uts/common/inet/
H A Dsqueue.c104 * to poll for packets. This helps schedule the receive side packet
108 * the interrupts and switches to poll mode. In poll mode, when poll
204 /* Wakeup poll thread only if SQS_POLLING is set */
716 * work anyway (but signal the poll thread to retrieve some packets in squeue_drain()
740 * SQS_POLL_RING() will not wake up poll thread in squeue_drain()
752 * If the poll thread is already running, just return. The in squeue_drain()
753 * poll thread continues to hold the proc and will finish in squeue_drain()
765 * If we are the worker thread and no work is left, send the poll in squeue_drain()
773 * that poll thread keeps the PROC and can decide in squeue_drain()
777 * If we drop the SQS_PROC here and poll thread comes in squeue_drain()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/
H A Dpoll2 hdr,sys poll,socket,netinet/in
3 lib select,poll,socket
130 # define poll _SYS_poll
136 # include <poll.h>
139 # include <sys/poll.h>
143 # undef poll
144 extern int poll(struct pollfd*,unsigned long,int);
/illumos-gate/usr/src/man/man3c/
H A Dtimerfd_create.3c45 .Xr poll 2 ,
136 .It Sy poll(2), port_get(3C), epoll_wait(3C)
145 .Xr poll 2
149 .Xr poll 2
196 .Xr poll 2 ,
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dselect.c31 * Emulation of select() system call using poll() system call.
52 #include <sys/poll.h>
199 * Now do the poll. in pselect()
241 * are bad. poll will complete the poll on the in pselect()
270 * Convert results of poll back into bits in pselect()
274 * on return from poll if they were set on input, thus we don't in pselect()
279 * (as the man page says, and as poll() does). in pselect()
371 * when select was built upon poll(2), which has a in select()

12345678910>>...44