| /kernel/linux/linux-6.6/io_uring/ |
| D | poll.c | 8 #include <linux/poll.h> 20 #include "poll.h" 38 /* output value, set only if arm poll returns >0 */ 90 * arming poll and wakeups. 106 /* pure poll stashes this in ->async_data, poll driven retry elsewhere */ in io_poll_get_double() 116 return &req->apoll->poll; in io_poll_get_single() 170 static void io_init_poll_iocb(struct io_poll *poll, __poll_t events) in io_init_poll_iocb() argument 172 poll->head = NULL; in io_init_poll_iocb() 175 poll->events = events | IO_POLL_UNMASK; in io_init_poll_iocb() 176 INIT_LIST_HEAD(&poll->wait.entry); in io_init_poll_iocb() [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/ |
| D | func-poll.rst | 4 .. _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 …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | func-poll.rst | 4 .. _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 …]
|
| /kernel/linux/linux-5.10/drivers/tty/vt/ |
| D | vc_screen.c | 44 #include <linux/poll.h> 89 struct vcs_poll_data *poll = in vcs_notifier() local 91 int currcons = poll->cons_num; in vcs_notifier() 112 poll->event = code; in vcs_notifier() 113 wake_up_interruptible(&poll->waitq); in vcs_notifier() 114 kill_fasync(&poll->fasync, SIGIO, fa_band); in vcs_notifier() 119 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument 121 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free() 122 kfree(poll); in vcs_poll_data_free() 128 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/vt/ |
| D | vc_screen.c | 44 #include <linux/poll.h> 89 struct vcs_poll_data *poll = in vcs_notifier() local 91 int currcons = poll->cons_num; in vcs_notifier() 112 poll->event = code; in vcs_notifier() 113 wake_up_interruptible(&poll->waitq); in vcs_notifier() 114 kill_fasync(&poll->fasync, SIGIO, fa_band); in vcs_notifier() 119 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument 121 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free() 122 kfree(poll); in vcs_poll_data_free() 128 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/serial/ |
| D | pl011.yaml | 78 auto-poll: 83 poll-rate-ms: 85 Rate at which poll occurs when auto-poll is set. 89 poll-timeout-ms: 91 Poll timeout when auto-poll is set, default 110 poll-rate-ms: [ auto-poll ] 111 poll-timeout-ms: [ auto-poll ]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/serial/ |
| D | pl011.yaml | 82 auto-poll: 87 poll-rate-ms: 89 Rate at which poll occurs when auto-poll is set. 94 poll-timeout-ms: 96 Poll timeout when auto-poll is set, default 107 poll-rate-ms: [ auto-poll ] 108 poll-timeout-ms: [ auto-poll ]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/mediactl/ |
| D | request-func-poll.rst | 4 .. _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
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/mediactl/ |
| D | request-func-poll.rst | 4 .. _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
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/cec/ |
| D | cec-func-poll.rst | 4 .. _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
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/cec/ |
| D | cec-func-poll.rst | 4 .. _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
|
| /kernel/linux/linux-6.6/include/trace/events/ |
| D | scmi.h | 37 bool poll), 38 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll), 45 __field(bool, poll) 53 __entry->poll = poll; 56 TP_printk("pt=%02X msg_id=%02X seq=%04X transfer_id=%X poll=%u", 58 __entry->transfer_id, __entry->poll) 63 u32 timeout, bool poll), 64 TP_ARGS(transfer_id, msg_id, protocol_id, seq, timeout, poll), 72 __field(bool, poll) 81 __entry->poll = poll; [all …]
|
| /kernel/linux/linux-5.10/arch/um/os-Linux/ |
| D | sigio.c | 9 #include <poll.h> 38 struct pollfd *poll; member 61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread() 65 printk(UM_KERN_ERR "write_sigio_thread : poll returned " in write_sigio_thread() 69 p = &fds->poll[i]; in write_sigio_thread() 88 memmove(&fds->poll[i], &fds->poll[i + 1], in write_sigio_thread() 89 (fds->used - i) * sizeof(*fds->poll)); in write_sigio_thread() 117 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd)); in need_poll() 118 kfree(polls->poll); in need_poll() 120 polls->poll = new; in need_poll() [all …]
|
| /kernel/linux/linux-6.6/arch/um/os-Linux/ |
| D | sigio.c | 9 #include <poll.h> 38 struct pollfd *poll; member 61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread() 65 printk(UM_KERN_ERR "write_sigio_thread : poll returned " in write_sigio_thread() 69 p = &fds->poll[i]; in write_sigio_thread() 88 memmove(&fds->poll[i], &fds->poll[i + 1], in write_sigio_thread() 89 (fds->used - i) * sizeof(*fds->poll)); in write_sigio_thread() 117 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd)); in need_poll() 118 kfree(polls->poll); in need_poll() 120 polls->poll = new; in need_poll() [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | poll.h | 12 #include <uapi/linux/poll.h> 29 * structures and helpers for f_op->poll implementations 57 * Return true if it is guaranteed that poll will not wait. This is the case 58 * if the poll() of another file descriptor in the set got an event, so there 67 * Return the set of events that the application wants to poll for. 69 * to be started implicitly on poll(). You typically only want to do that 85 return file->f_op->poll; in file_can_poll() 90 if (unlikely(!file->f_op->poll)) in vfs_poll() 92 return file->f_op->poll(file, pt); in vfs_poll() 103 * Structures and helpers for select/poll syscall [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | poll.h | 13 #include <uapi/linux/poll.h> 35 * structures and helpers for f_op->poll implementations 55 * Return true if it is guaranteed that poll will not wait. This is the case 56 * if the poll() of another file descriptor in the set got an event, so there 65 * Return the set of events that the application wants to poll for. 67 * to be started implicitly on poll(). You typically only want to do that 83 return file->f_op->poll; in file_can_poll() 88 if (unlikely(!file->f_op->poll)) in vfs_poll() 90 return file->f_op->poll(file, pt); in vfs_poll() 101 * Structures and helpers for select/poll syscall [all …]
|
| D | input-polldev.h | 19 * @poll: driver-supplied method that polls the device and posts 21 * @poll_interval: specifies how often the poll() method should be called. 23 * @poll_interval_max: specifies upper bound for the poll interval. 25 * @poll_interval_min: specifies lower bound for the poll interval. 39 void (*poll)(struct input_polled_dev *dev); member
|
| /kernel/linux/linux-6.6/Documentation/networking/ |
| D | napi.rst | 16 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 …]
|
| /kernel/linux/linux-5.10/include/trace/events/ |
| D | scmi.h | 12 bool poll), 13 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll), 20 __field(bool, poll) 28 __entry->poll = poll; 31 TP_printk("transfer_id=%d msg_id=%u protocol_id=%u seq=%u poll=%u", 33 __entry->seq, __entry->poll)
|
| /kernel/linux/linux-5.10/drivers/iio/common/hid-sensors/ |
| D | hid-sensor-attributes.c | 165 st->poll.report_id, in hid_sensor_read_poll_value() 166 st->poll.index, sizeof(value), &value); in hid_sensor_read_poll_value() 171 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value() 186 st->poll.report_id, in hid_sensor_read_samp_freq_value() 187 st->poll.index, sizeof(value), &value); in hid_sensor_read_samp_freq_value() 192 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value() 194 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value() 217 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value() 219 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value() 224 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/common/hid-sensors/ |
| D | hid-sensor-attributes.c | 160 st->poll.report_id, in hid_sensor_read_poll_value() 161 st->poll.index, sizeof(value), &value); in hid_sensor_read_poll_value() 166 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value() 181 st->poll.report_id, in hid_sensor_read_samp_freq_value() 182 st->poll.index, sizeof(value), &value); in hid_sensor_read_samp_freq_value() 187 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value() 189 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value() 212 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value() 214 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value() 219 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
| D | pidfd_poll_test.c | 6 #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()
|
| /kernel/linux/linux-6.6/tools/testing/selftests/pidfd/ |
| D | pidfd_poll_test.c | 6 #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()
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/microchip/ |
| D | at91-natte.dtsi | 74 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>;
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | at91-natte.dtsi | 74 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>;
|