Home
last modified time | relevance | path

Searched refs:poll (Results 1 – 25 of 712) sorted by relevance

12345678910>>...29

/linux/io_uring/
H A Dpoll.c118 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->events = events | IO_POLL_UNMASK; in io_init_poll_iocb()
137 INIT_LIST_HEAD(&poll->wait.entry); in io_init_poll_iocb()
138 init_waitqueue_func_entry(&poll->wait, io_poll_wake); in io_init_poll_iocb()
141 static void io_poll_remove_waitq(struct io_poll *poll) in io_poll_remove_waitq() argument
149 list_del_init(&poll->wait.entry); in io_poll_remove_waitq()
157 smp_store_release(&poll->head, NULL); in io_poll_remove_waitq()
160 static inline void io_poll_remove_entry(struct io_poll *poll) in io_poll_remove_entry() argument
[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;
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;
90 __entry->transfer_id, __entry->timeout, __entry->poll)
/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/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/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/drivers/input/misc/
H A Dwm831x-on.c45 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/Documentation/translations/zh_CN/accounting/
H A Dpsi.rst63 用户可注册触发器,通过poll()监控资源压力是否超过门限。
69 所打开的文件描述符用于等待事件,可使用select()、poll()、epoll()。
102 #include <poll.h>
128 n = poll(&fds, 1, -1);
130 printf("poll error: %s\n", strerror(errno));
/linux/tools/testing/selftests/powerpc/nx-gzip/
H A Dgzip_vas.c137 long poll = 0; in nx_wait_for_csb() local
153 ++poll; in nx_wait_for_csb()
167 if (poll > CSB_MAX_POLL) in nx_wait_for_csb()
186 (int) poll); in nx_wait_for_csb()
188 (int) poll); in nx_wait_for_csb()
/linux/drivers/isdn/mISDN/
H A Ddsp_core.c167 static int poll; variable
173 module_param(poll, uint, S_IRUGO | S_IWUSR);
1127 dsp_poll = poll; in dsp_init()
1131 "maximum.\n", __func__, poll, MAX_POLL); in dsp_init()
1141 dsp_tics = poll * HZ / 8000; in dsp_init()
1142 if (dsp_tics * 8000 != poll * HZ) { in dsp_init()
1145 "%d HZ.\n", poll, HZ); in dsp_init()
1150 poll = 8; in dsp_init()
1151 while (poll <= MAX_POLL) { in dsp_init()
1152 tics = (poll * HZ) / 8000; in dsp_init()
[all …]
/linux/drivers/firmware/arm_scmi/
H A Dperf.c692 u32 domain, u32 level, bool poll) in scmi_perf_msg_level_set() argument
702 t->hdr.poll_completion = poll; in scmi_perf_msg_level_set()
715 bool poll) in __scmi_perf_level_set() argument
727 return scmi_perf_msg_level_set(ph, dom->id, level, poll); in __scmi_perf_level_set()
731 u32 domain, u32 level, bool poll) in scmi_perf_level_set() argument
752 return __scmi_perf_level_set(ph, dom, level, poll); in scmi_perf_level_set()
756 u32 domain, u32 *level, bool poll) in scmi_perf_msg_level_get() argument
766 t->hdr.poll_completion = poll; in scmi_perf_msg_level_get()
779 bool poll) in __scmi_perf_level_get() argument
788 return scmi_perf_msg_level_get(ph, dom->id, level, poll); in __scmi_perf_level_get()
[all …]
/linux/drivers/vhost/
H A Dvhost.c165 struct vhost_poll *poll; in vhost_poll_func() local
167 poll = container_of(pt, struct vhost_poll, table); in vhost_poll_func()
168 poll->wqh = wqh; in vhost_poll_func()
169 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
175 struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); in vhost_poll_wakeup() local
176 struct vhost_work *work = &poll->work; in vhost_poll_wakeup()
178 if (!(key_to_poll(key) & poll->mask)) in vhost_poll_wakeup()
181 if (!poll->dev->use_worker) in vhost_poll_wakeup()
184 vhost_poll_queue(poll); in vhost_poll_wakeup()
197 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, in vhost_poll_init() argument
[all …]
H A Dnet.c139 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member
415 vhost_poll_queue(&vq->poll); in vhost_zerocopy_complete()
440 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local
443 vhost_poll_stop(poll); in vhost_net_disable_vq()
451 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local
458 return vhost_poll_start(poll, sock->file); in vhost_net_enable_vq()
534 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue()
537 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue()
793 vhost_poll_queue(&vq->poll); in handle_tx_copy()
894 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy()
[all …]
H A Dvhost.h66 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
69 int vhost_poll_start(struct vhost_poll *poll, struct file *file);
70 void vhost_poll_stop(struct vhost_poll *poll);
71 void vhost_poll_queue(struct vhost_poll *poll);
110 struct vhost_poll poll; member
/linux/drivers/pci/hotplug/
H A Dcpcihp_zt5550.c42 static bool poll; variable
201 if (!poll) { in zt5550_hc_init_one()
308 module_param(poll, bool, 0644);
309 MODULE_PARM_DESC(poll, "#ENUM polling mode enabled or not");
/linux/drivers/comedi/drivers/
H A Dpcl816.c454 unsigned int poll; in pcl816_ai_poll() local
459 poll = comedi_isadma_poll(dma); in pcl816_ai_poll()
460 poll = comedi_bytes_to_samples(s, poll); in pcl816_ai_poll()
461 if (poll > devpriv->ai_poll_ptr) { in pcl816_ai_poll()
465 poll - devpriv->ai_poll_ptr); in pcl816_ai_poll()
467 devpriv->ai_poll_ptr = poll; in pcl816_ai_poll()
640 s->poll = pcl816_ai_poll; in pcl816_attach()
/linux/drivers/staging/octeon/
H A Dethernet-mdio.c93 if (priv->poll) in cvm_oct_adjust_link()
94 priv->poll(dev); in cvm_oct_adjust_link()
115 priv->poll = NULL; in cvm_oct_common_stop()
/linux/include/linux/
H A Dpoll.h75 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()
/linux/Documentation/translations/zh_CN/networking/
H A Dmsg_zerocopy.rst111 从错误队列读取始终是一个非阻塞操作。poll 调用用于阻塞,直到出现错误。它会在其输出标志中
118 if (poll(&pfd, 1, -1) != 1 || pfd.revents & POLLERR == 0)
119 error(1, errno, "poll");
/linux/arch/um/drivers/
H A Dubd_user.c71 return poll(&kernel_pollfd, 1, timeout); in ubd_read_poll()
76 return poll(&kernel_pollfd, 1, timeout); in ubd_write_poll()
/linux/Documentation/translations/zh_CN/filesystems/
H A Dinotify.rst50 - 将无法知晓事件的顺序。文件 foo 和文件 bar 上的事件会触发两个文件描述符上的 poll(),
77 基本的文件 I/O 操作以及 poll/select 操作。获取文件描述符和管理监控项既可以通过设备文件来
/linux/Documentation/devicetree/bindings/input/
H A Dclps711x-keypad.txt6 - poll-interval: Poll interval time in milliseconds.
17 poll-interval = <120>;
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_info_test.c209 nevents = poll(&fds, 1, -1); in TEST_F()
284 nevents = poll(&fds, 1, 10000 /* wait 5 seconds */); in TEST_F()
352 nevents = poll(&fds, 1, -1); in TEST_F()
464 nevents = poll(&fds, 1, 10000 /* wait 5 seconds */); in TEST_F()
491 nevents = poll(&fds, 1, -1); in TEST_F()
529 nevents = poll(&fds, 1, -1); in TEST_F()
620 nevents = poll(&fds, 1, 10000 /* wait 5 seconds */); in TEST_F()
638 nevents = poll(&fds, 1, -1); in TEST_F()
676 nevents = poll(&fds, 1, -1); in TEST_F()
/linux/drivers/cpuidle/
H A DKconfig75 tristate "Halt poll cpuidle driver"
80 This option enables halt poll cpuidle driver, which allows to poll

12345678910>>...29