/kernel/linux/linux-6.6/io_uring/ |
H A 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 in io_init_poll_iocb() 180 io_poll_remove_entry(struct io_poll *poll) io_poll_remove_entry() argument 363 struct io_poll *poll; io_poll_task_func() local 398 io_pollfree_wake(struct io_kiocb *req, struct io_poll *poll) io_pollfree_wake() argument 427 struct io_poll *poll = container_of(wait, struct io_poll, wait); io_poll_wake() local 464 struct io_poll *poll = io_poll_get_single(req); io_poll_double_prepare() local 486 __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 546 struct io_poll *poll = io_kiocb_to_cmd(pt->req, struct io_poll); io_poll_queue_proc() local 572 __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 938 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add_prep() local 955 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add() local 1015 struct io_poll *poll = io_kiocb_to_cmd(preq, struct io_poll); io_poll_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/tty/vt/ |
H A 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 in vcs_poll_data_get() local 369 struct vcs_poll_data *poll; vcs_read() local 714 struct vcs_poll_data *poll = vcs_poll_data_get(file); vcs_poll() local 737 struct vcs_poll_data *poll = file->private_data; vcs_fasync() local 772 struct vcs_poll_data *poll = file->private_data; vcs_release() local [all...] |
/kernel/linux/linux-6.6/drivers/tty/vt/ |
H A 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 in vcs_poll_data_get() local 369 struct vcs_poll_data *poll; vcs_read() local 714 struct vcs_poll_data *poll = vcs_poll_data_get(file); vcs_poll() local 737 struct vcs_poll_data *poll = file->private_data; vcs_fasync() local 772 struct vcs_poll_data *poll = file->private_data; vcs_release() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_poll.py | 1 # Test case for the os.poll() function 18 select.poll 20 raise unittest.SkipTest("select.poll not defined") 34 # Basic functional test of poll object 35 # Create a bunch of pipe and test that poll works with them. 37 p = select.poll() 60 ready = p.poll() 67 ready = p.poll() 87 p = select.poll() 89 r = p.poll() [all...] |
H A D | test_devpoll.py | 25 # Basic functional test of poll object 26 # Create a bunch of pipe and test that poll works with them. 51 ready = p.poll() 58 ready = p.poll() 79 pollster.poll(-1) 80 self.assertRaises(OverflowError, pollster.poll, -2) 81 self.assertRaises(OverflowError, pollster.poll, -1 << 31) 82 self.assertRaises(OverflowError, pollster.poll, -1 << 64) 84 pollster.poll(0) 85 pollster.poll( [all...] |
H A D | test_epoll.py | 150 events = ep.poll(1, 4) 151 events2 = ep2.poll(0.9, 4) 156 ep2.poll(1, 4) 173 events = ep.poll(1, 4) 182 events = ep.poll(timeout=0.1, maxevents=4) 190 events = ep.poll(1.0, 4) 202 events = ep.poll(1, 4) 221 events = ep.poll(1, 4) 251 self.assertRaises(ValueError, epoll.poll, 1.0)
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
H A 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, poll in need_poll() [all...] |
/kernel/linux/linux-6.6/arch/um/os-Linux/ |
H A 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, poll in need_poll() [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A 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) [all...] |
/foundation/communication/nfc/services/src/nci_adapter/nci_native_default/src/ |
H A D | tag_host.cpp | 307 std::string poll = tagPollBytes_[index]; in DoTargetTypeIso144433a() local 313 pacMap.PutStringValue(KITS::TagInfo::ATQA, poll); in DoTargetTypeIso144433a() 314 DebugLog("DoTargetTypeIso144433a ATQA: %{public}s", poll.c_str()); in DoTargetTypeIso144433a() 319 std::string poll = tagPollBytes_[index]; in DoTargetTypeIso144433b() local 320 if (poll.empty()) { in DoTargetTypeIso144433b() 321 DebugLog("DoTargetTypeIso144433b poll empty"); in DoTargetTypeIso144433b() 325 if (KITS::NfcSdkCommon::GetHexStrBytesLen(poll) < in DoTargetTypeIso144433b() 327 DebugLog("DoTargetTypeIso144433b poll.len: %{public}d", KITS::NfcSdkCommon::GetHexStrBytesLen(poll)); in DoTargetTypeIso144433b() 331 std::string appData = poll in DoTargetTypeIso144433b() 362 std::string poll = tagPollBytes_[index]; DoTargetTypeV() local 382 std::string poll = tagPollBytes_[index]; DoTargetTypeF() local [all...] |
/third_party/skia/tests/ |
H A D | MessageBusTest.cpp | 42 inbox1.poll(&messages); in DEF_TEST() 50 inbox1.poll(&messages); in DEF_TEST() 55 inbox1.poll(&messages); in DEF_TEST() 59 inbox2.poll(&messages); in DEF_TEST() 96 inbox1.poll(&messages); in DEF_TEST() 106 inbox1.poll(&messages); in DEF_TEST() 116 inbox1.poll(&messages); in DEF_TEST() 156 inbox1.poll(&messages); in DEF_TEST() 162 inbox2.poll(&messages); in DEF_TEST()
|
/kernel/linux/linux-5.10/drivers/iio/common/hid-sensors/ |
H A 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 in hid_sensor_write_samp_freq_value() [all...] |
/kernel/linux/linux-6.6/drivers/iio/common/hid-sensors/ |
H A 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 in hid_sensor_write_samp_freq_value() [all...] |
/third_party/node/test/wasi/c/ |
H A D | poll.c | 2 #include <poll.h> 26 // Test poll() timeout behavior. in main() 29 ret = poll(fds, 1, 2000); in main() 41 ret = poll(fds, 2, -1); in main() 46 // Make a poll() call with duplicate file descriptors. in main() 52 ret = poll(fds, 2, -1); in main() 60 // zero. In the Node test suite, STDIN is not a TTY, and poll() returns one, in main() 61 // with revents = POLLHUP | POLLIN, except on AIX whose poll() does not in main() 64 ret = poll(fds, 1, 2000); in main()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A 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/input/misc/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A 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()
|
/third_party/rust/crates/nix/test/ |
H A D | test_poll.rs | 3 poll::{poll, PollFd, PollFlags}, 25 let nfds = loop_while_eintr!(poll(&mut fds, 100)); in test_poll() 32 let nfds = poll(&mut fds, 100).unwrap(); in test_poll() 37 // ppoll(2) is the same as poll except for how it handles timeouts and signals. 38 // Repeating the test for poll(2) should be sufficient to check that our 48 use nix::poll::ppoll; in test_ppoll()
|
/third_party/curl/src/ |
H A D | tool_sleep.c | 33 # include <poll.h> 35 # include <sys/poll.h> 53 (void)poll((void *)0, 0, (int)ms); in tool_go_sleep()
|
/third_party/musl/porting/linux/user/include/ |
H A D | poll.h | 10 #include <bits/poll.h> 37 int poll (struct pollfd *, nfds_t, int); 53 #include <fortify/poll.h>
|
/third_party/musl/include/ |
H A D | poll.h | 10 #include <bits/poll.h> 37 int poll (struct pollfd *, nfds_t, int); 54 #include <fortify/poll.h>
|
/kernel/linux/linux-5.10/sound/core/ |
H A D | misc.c | 163 int poll; member 181 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn() 218 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument 226 fasync->poll = poll; in snd_kill_fasync()
|
/kernel/linux/linux-6.6/sound/core/ |
H A D | misc.c | 163 int poll; member 181 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn() 218 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument 226 fasync->poll = poll; in snd_kill_fasync()
|
/third_party/rust/crates/rustix/tests/net/ |
H A D | poll.rs | 1 //! The same as v6.rs, but with `poll` calls. 5 use rustix::io::{poll, PollFd, PollFlags}; 44 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in server() 54 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in server() 83 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in client() 90 assert_eq!(poll(&mut fds, -1).unwrap(), 1); in client()
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A D | dma-buf.c | 23 #include <linux/poll.h> 71 * Any fences that a dma-buf poll can wait on should be signaled in dma_buf_release() 187 * Userspace can query the state of these implicitly tracked fences using poll() 206 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 207 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 209 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb() 212 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument 227 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll() 229 events = poll_requested_events(poll) in dma_buf_poll() [all...] |