Home
last modified time | relevance | path

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

12345678910>>...61

/linux/io_uring/
H A Dpoll.c8 #include <linux/poll.h>
22 #include "poll.h"
40 /* output value, set only if arm poll returns >0 */
92 * arming poll and wakeups.
108 /* pure poll stashes this in ->async_data, poll driven retry elsewhere */ in io_poll_get_double()
118 return &req->apoll->poll; in io_poll_get_single()
131 static void io_init_poll_iocb(struct io_poll *poll, __poll_t events) in io_init_poll_iocb() argument
133 poll->head = NULL; in io_init_poll_iocb()
136 poll in io_init_poll_iocb()
141 io_poll_remove_entry(struct io_poll * poll) io_poll_remove_entry() argument
332 struct io_poll *poll; io_poll_task_func() local
367 io_pollfree_wake(struct io_kiocb * req,struct io_poll * poll) io_pollfree_wake() argument
396 struct io_poll *poll = container_of(wait, struct io_poll, wait); io_poll_wake() local
433 struct io_poll *poll = io_poll_get_single(req); io_poll_double_prepare() local
455 __io_queue_proc(struct io_poll * poll,struct io_poll_table * pt,struct wait_queue_head * head,struct io_poll ** poll_ptr) __io_queue_proc() argument
516 struct io_poll *poll = io_kiocb_to_cmd(pt->req, struct io_poll); io_poll_queue_proc() local
544 __io_arm_poll_handler(struct io_kiocb * req,struct io_poll * poll,struct io_poll_table * ipt,__poll_t mask,unsigned issue_flags) __io_arm_poll_handler() argument
878 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add_prep() local
895 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add() local
932 struct io_poll *poll = io_kiocb_to_cmd(preq, struct io_poll); io_poll_remove() local
[all...]
/linux/tools/testing/selftests/ftrace/test.d/trigger/
H A Dtrigger-hist-poll.tc3 # description: event trigger - test poll wait on histogram
7 POLL=${FTRACETEST_ROOT}/poll
9 if [ ! -x ${POLL} ]; then
10 echo "poll program is not compiled!"
16 # Check poll ops is supported. Before implementing poll on hist file, it
21 ${POLL} -I -t 1000 ${EVENT}/hist
25 echo "poll on hist file is not supported"
37 # if timeout happens, poll returns 1.
38 ${POLL} -I -t 4000 ${EVENT}/hist
42 echo "poll exits too soon"
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dfunc-poll.rst4 .. _func-poll:
7 V4L2 poll()
13 v4l2-poll - Wait for some event on a file descriptor
20 #include <sys/poll.h>
22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
31 With the :c:func:`poll()` function applications can suspend execution
44 On success :c:func:`poll()` returns the number of file descriptors
52 :ref:`VIDIOC_STREAMON <VIDIOC_STREAMON>` the :c:func:`poll()`
57 :c:func:`poll()` function succeeds and sets the ``POLLERR`` flag in
59 :c:func:`poll()` to succeed as well, but it sets the ``POLLOUT`` and
[all …]
/linux/include/trace/events/
H A Dscmi.h39 bool poll, int inflight),
40 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll, inflight),
47 __field(bool, poll)
56 __entry->poll = poll;
60 TP_printk("pt=%02X msg_id=%02X seq=%04X transfer_id=%X poll=%u inflight=%d",
62 __entry->transfer_id, __entry->poll, __entry->inflight)
67 u32 timeout, bool poll),
68 TP_ARGS(transfer_id, msg_id, protocol_id, seq, timeout, poll),
76 __field(bool, poll)
85 __entry->poll = poll;
[all …]
/linux/Documentation/userspace-api/media/mediactl/
H A Drequest-func-poll.rst4 .. _request-func-poll:
7 request poll()
13 request-poll - Wait for some event on a file descriptor
20 #include <sys/poll.h>
22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
39 With the :c:func:`poll()` function applications can wait
42 On success :c:func:`poll()` returns the number of file
50 Attempting to poll for a request that is not yet queued will
56 On success, :c:func:`poll()` returns the number of
/linux/Documentation/userspace-api/media/cec/
H A Dcec-func-poll.rst4 .. _cec-func-poll:
7 cec poll()
13 cec-poll - Wait for some event on a file descriptor
20 #include <sys/poll.h>
22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
39 With the :c:func:`poll()` function applications can wait for CEC
42 On success :c:func:`poll()` returns the number of file descriptors
53 For more details see the :c:func:`poll()` manual page.
58 On success, :c:func:`poll()` returns the number structures which have
/linux/include/linux/
H A Dpoll.h12 #include <uapi/linux/poll.h>
29 * structures and helpers for f_op->poll implementations
57 * Return the set of events that the application wants to poll for.
59 * to be started implicitly on poll(). You typically only want to do that
75 return file->f_op->poll; in file_can_poll()
80 if (unlikely(!file->f_op->poll)) in vfs_poll()
82 return file->f_op->poll(file, pt); in vfs_poll()
93 * Structures and helpers for select/poll syscall
123 #define M(X) __MAP(v, (__force __u16)EPOLL##X, POLL##X) in mangle_poll()
132 #define M(X) (__force __poll_t)__MAP(val, POLL##X, (__force __u16)EPOLL##X) in demangle_poll()
/linux/Documentation/networking/
H A Dnapi.rst16 interrupts first (:ref:`busy polling<poll>`).
29 and the associated poll method. struct napi_struct holds the state
45 A disabled NAPI can't be scheduled and its poll method is guaranteed
57 napi_schedule() is the basic method of scheduling a NAPI poll.
62 Later, after NAPI is scheduled, the driver's poll method will be
69 packets driver can process in a single poll. Rx specific APIs like page
79 The poll method returns the amount of work done. If the driver still
81 the poll method should return exactly ``budget``. In that case,
86 processed) the poll method should call napi_complete_done()
104 of calls. The poll method may be called without the driver scheduling
[all …]
/linux/tools/testing/selftests/ftrace/
H A Dpoll.c3 * Simple poll on a file.
10 #include <poll.h>
20 * poll [-I|-P] [-t timeout] FILE
58 /* Reset poll by read if POLLIN is specified. */ in main()
62 ret = poll(&pfd, 1, timeout); in main()
64 perror("poll"); in main()
/linux/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c164 st->poll.report_id, in hid_sensor_read_poll_value()
165 st->poll.index, sizeof(value), &value); in hid_sensor_read_poll_value()
170 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value()
185 st->poll.report_id, in hid_sensor_read_samp_freq_value()
186 st->poll.index, sizeof(value), &value); in hid_sensor_read_samp_freq_value()
191 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value()
193 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value()
216 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value()
218 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value()
223 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
[all …]
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c6 #include <poll.h>
44 ksft_print_msg("running pidfd poll test for %d iterations\n", in main()
86 nevents = poll(&fds, 1, -1); in main()
90 ksft_exit_fail_msg("%s - poll failed\n", in main()
94 ksft_exit_fail_msg("unexpected poll result: %d\n", in main()
114 ksft_test_result_pass("pidfd poll test: pass\n"); in main()
/linux/arch/arm/boot/dts/microchip/
H A Dat91-natte.dtsi74 poll-interval = <20000>;
90 poll-interval = <20000>;
106 poll-interval = <20000>;
122 poll-interval = <20000>;
138 poll-interval = <20000>;
154 poll-interval = <20000>;
170 poll-interval = <20000>;
186 poll-interval = <20000>;
/linux/lib/
H A Dstmp_device.c22 * Clear the bit and poll it cleared. This is usually called with
43 /* clear and poll SFTRST */ in stmp_reset_block()
55 /* poll CLKGATE becoming set */ in stmp_reset_block()
61 /* clear and poll SFTRST */ in stmp_reset_block()
66 /* clear and poll CLKGATE */ in stmp_reset_block()
H A Dirq_poll.c3 * Functions related to interrupt-poll handling in the block layer. This
24 * Add this irq_poll structure to the pending poll list and trigger the
102 * entries to the tail of this list, and only ->poll() in irq_poll_softirq()
110 work = iop->poll(iop, weight); in irq_poll_softirq()
184 iop->poll = poll_fn; in irq_poll_init()
192 * set the POLL softirq bit. The local_bh_disable()/enable() pair in irq_poll_cpu_dead()
194 * reach idle with the POLL softirq pending. in irq_poll_cpu_dead()
/linux/drivers/cpuidle/governors/
H A Dhaltpoll.c39 /* allow shrinking guest halt poll */
63 /* Last state was poll? */ in haltpoll_select()
65 /* Halt if no event occurred on poll window */ in haltpoll_select()
70 /* Otherwise, poll again */ in haltpoll_select()
75 /* Last state was halt: poll */ in haltpoll_select()
116 * haltpoll_reflect - update variables and update poll time
/linux/drivers/input/misc/
H A Dwm831x-on.c38 * then need to poll to see when the pin is deasserted.
45 int poll, ret; in wm831x_poll_on() local
49 poll = !(ret & WM831X_ON_PIN_STS); in wm831x_poll_on()
51 input_report_key(wm831x_on->dev, KEY_POWER, poll); in wm831x_poll_on()
55 poll = 1; in wm831x_poll_on()
58 if (poll) in wm831x_poll_on()
/linux/drivers/staging/gpib/include/
H A Dgpib_cmd.h25 PPU = 0x15, /* parallel poll unconfigure */
26 SPE = 0x18, /* serial poll enable */
27 SPD = 0x19, /* serial poll disable */
34 PPE = 0x60, /* parallel poll enable (base) */
35 PPD = 0x70 /* parallel poll disable */
/linux/tools/include/nolibc/
H A Dpoll.h3 * poll definitions for NOLIBC
16 #include <linux/poll.h>
20 * int poll(struct pollfd *fds, int nfds, int timeout);
48 int poll(struct pollfd *fds, int nfds, int timeout)
50 int poll(struct pollfd *fds, int nfds, int timeout) poll() function
/linux/tools/leds/
H A Dled_hw_brightness_mon.c17 #include <poll.h>
50 * but it is required to avoid spurious poll notifications in in main()
59 ret = poll(&pollfd, 1, -1); in main()
61 printf("Failed to poll %s file (%d)\n", in main()
/linux/tools/testing/selftests/cgroup/
H A Dwait_inotify.c13 #include <poll.h>
62 * poll waiting loop in main()
65 int ret = poll(&fds, 1, 10000); in main()
70 perror("poll"); in main()
/linux/Documentation/userspace-api/gpio/
H A Dsysfs.rst96 description of "edge"), you can poll(2) on that file and
97 poll(2) will return whenever the interrupt was triggered. If
98 you use poll(2), set the events POLLPRI and POLLERR. If you
100 poll(2) returns, use pread(2) to read the value at offset
108 that will make poll(2) on the "value" file return.
117 poll(2) support configuration via the edge attribute
/linux/sound/core/
H A Dmisc.c92 int poll; member
110 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn()
145 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll)
151 fasync->poll = poll; in snd_kill_fasync()
147 snd_kill_fasync(struct snd_fasync * fasync,int signal,int poll) snd_kill_fasync() argument
/linux/arch/mips/include/asm/
H A Di8259.h43 * @poll: pointer to platform-specific polling function
50 extern void i8259_set_poll(int (*poll)(void));
64 outb(0x0C, PIC_MASTER_CMD); /* prepare for poll */ in i8259_irq()
71 outb(0x0C, PIC_SLAVE_CMD); /* prepare for poll */ in i8259_irq()
/linux/Documentation/devicetree/bindings/input/
H A Dclps711x-keypad.txt6 - poll-interval: Poll interval time in milliseconds.
17 poll-interval = <120>;
/linux/fs/
H A Deventpoll.c18 #include <linux/poll.h>
53 * from inside the poll callback, that might be triggered from
55 * So we can't sleep inside the poll callback and hence we need
107 /* Wait structure used by the poll hooks */
158 /* List containing poll wait queues */
191 /* Wait queue used by file->poll() */
230 /* used to track busy poll napi_id */
232 /* busy poll timeout */
234 /* busy poll packet budget */
245 /* Wrapper struct used by poll queueing */
[all …]

12345678910>>...61