| /Linux-v5.15/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 …]
 
 | 
| /Linux-v5.15/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 …]
 
 | 
| /Linux-v5.15/Documentation/devicetree/bindings/serial/ | 
| D | pl011.yaml | 77   auto-poll:82   poll-rate-ms:
 84       Rate at which poll occurs when auto-poll is set.
 88   poll-timeout-ms:
 90       Poll timeout when auto-poll is set, default
 100   poll-rate-ms: [ auto-poll ]
 101   poll-timeout-ms: [ auto-poll ]
 
 | 
| /Linux-v5.15/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
 
 | 
| /Linux-v5.15/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
 
 | 
| /Linux-v5.15/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 …]
 
 | 
| /Linux-v5.15/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 | iopoll.h | 17  * read_poll_timeout - Periodically poll an address until a condition is27  * @args: arguments for @op poll
 61  * read_poll_timeout_atomic - Periodically poll an address until a condition is
 71  * @args: arguments for @op poll
 103  * readx_poll_timeout - Periodically poll an address until a condition is met or a timeout occurs
 105  * @addr: Address to poll
 124 …* readx_poll_timeout_atomic - Periodically poll an address until a condition is met or a timeout o…
 126  * @addr: Address to poll
 
 | 
| /Linux-v5.15/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)
 
 | 
| /Linux-v5.15/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 …]
 
 | 
| /Linux-v5.15/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()
 
 | 
| /Linux-v5.15/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>;
 
 | 
| /Linux-v5.15/lib/ | 
| D | stmp_device.c | 22  * Clear the bit and poll it cleared.  This is usually called with43 	/* 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()
 
 | 
| /Linux-v5.15/drivers/cpuidle/governors/ | 
| D | haltpoll.c | 38 /* allow shrinking guest halt poll */62 	/* Last state was poll? */  in haltpoll_select()
 64 		/* Halt if no event occurred on poll window */  in haltpoll_select()
 69 		/* Otherwise, poll again */  in haltpoll_select()
 74 	/* Last state was halt: poll */  in haltpoll_select()
 108  * haltpoll_reflect - update variables and update poll time
 
 | 
| /Linux-v5.15/drivers/input/misc/ | 
| D | wm831x-on.c | 38  * 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-v5.15/drivers/vhost/ | 
| D | vhost.h | 9 #include <linux/poll.h>28 /* Poll a file (eventfd or socket) */
 43 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
 45 int vhost_poll_start(struct vhost_poll *poll, struct file *file);
 46 void vhost_poll_stop(struct vhost_poll *poll);
 47 void vhost_poll_flush(struct vhost_poll *poll);
 48 void vhost_poll_queue(struct vhost_poll *poll);
 84 	struct vhost_poll poll;  member
 
 | 
| /Linux-v5.15/tools/leds/ | 
| D | led_hw_brightness_mon.c | 17 #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-v5.15/Documentation/devicetree/bindings/input/ | 
| D | clps711x-keypad.txt | 6 - poll-interval: Poll interval time in milliseconds.17 		poll-interval = <120>;
 
 | 
| /Linux-v5.15/arch/mips/include/asm/ | 
| D | i8259.h | 43  * @poll: pointer to platform-specific polling function50 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-v5.15/Documentation/admin-guide/gpio/ | 
| D | sysfs.rst | 93 		description of "edge"), you can poll(2) on that file and94 		poll(2) will return whenever the interrupt was triggered. If
 95 		you use poll(2), set the events POLLPRI and POLLERR. If you
 97 		poll(2) returns, either lseek(2) to the beginning of the sysfs
 104 		that will make poll(2) on the "value" file return.
 113 		poll(2) support configuration via the edge attribute
 
 | 
| /Linux-v5.15/drivers/hwmon/ | 
| D | aht10.c | 17  * Poll intervals (in milliseconds)52  *   @min_poll_interval: the minimum poll interval
 53  *                   While the poll rate limit is not 100% necessary,
 112  * aht10_polltime_expired() - check if the minimum poll interval has
 115  * Return: 1 if the minimum poll interval has expired, 0 if not
 178  * aht10_interval_write() - store the given minimum poll interval.
 190  * aht10_interval_read() - read the minimum poll interval
 
 | 
| /Linux-v5.15/drivers/gpu/drm/ | 
| D | drm_probe_helper.c | 68 module_param_named(poll, drm_kms_helper_poll, bool, 0600);244 	bool poll = false;  in drm_kms_helper_poll_enable()  local
 256 			poll = true;  in drm_kms_helper_poll_enable()
 268 		 * drm_helper_probe_single_connector_modes() in case the poll  in drm_kms_helper_poll_enable()
 271 		poll = true;  in drm_kms_helper_poll_enable()
 275 	if (poll)  in drm_kms_helper_poll_enable()
 471 	 * Normally either the driver's hpd code or the poll loop should  in drm_helper_probe_single_connector_modes()
 486 		 * locks. Fire up the poll struct instead, it will  in drm_helper_probe_single_connector_modes()
 495 	/* Re-enable polling in case the global poll config changed. */  in drm_helper_probe_single_connector_modes()
 656 		/* if we are connected and don't want to poll for disconnect  in output_poll_execute()
 [all …]
 
 | 
| /Linux-v5.15/Documentation/accounting/ | 
| D | psi.rst | 71 Users can register triggers and use poll() to be woken up when resource81 used to wait for trigger events using select(), poll() or epoll().
 93 file descriptor is required to be able to poll it separately from others,
 125   #include <poll.h>
 154 		n = poll(&fds, 1, -1);
 156 			printf("poll error: %s\n", strerror(errno));
 
 | 
| /Linux-v5.15/drivers/input/ | 
| D | input-poller.c | 16 	void (*poll)(struct input_dev *dev);  member42 	poller->poll(poller->input);  in input_dev_poller_work()
 58 		poller->poll(poller->input);  in input_dev_poller_start()
 87 	poller->poll = poll_fn;  in input_setup_polling()
 180 static DEVICE_ATTR(poll, 0644,
 
 | 
| /Linux-v5.15/Documentation/translations/zh_CN/accounting/ | 
| D | psi.rst | 69 所打开的文件描述符用于等待事件,可使用select()、poll()、epoll()。102   #include <poll.h>
 128                 n = poll(&fds, 1, -1);
 130                         printf("poll error: %s\n", strerror(errno));
 
 |