Home
last modified time | relevance | path

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

12345678910>>...30

/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()
137 * only poll must stay armed until the file is writable again. in io_init_poll_iocb()
144 static void io_init_poll_iocb(struct io_poll *poll, __poll_t events) in io_poll_remove_waitq()
146 poll in io_poll_remove_waitq()
131 io_init_poll_iocb(struct io_poll * poll,__poll_t events) io_init_poll_iocb() argument
141 io_poll_remove_waitq(struct io_poll * poll) io_poll_remove_waitq() argument
160 io_poll_remove_entry(struct io_poll * poll) io_poll_remove_entry() argument
357 struct io_poll *poll; io_poll_task_func() local
392 io_pollfree_wake(struct io_kiocb * req,struct io_poll * poll) io_pollfree_wake() argument
405 struct io_poll *poll = container_of(wait, struct io_poll, wait); io_poll_wake() local
443 struct io_poll *poll = io_poll_get_single(req); io_poll_double_prepare() local
465 __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
526 struct io_poll *poll = io_kiocb_to_cmd(pt->req, struct io_poll); io_poll_queue_proc() local
554 __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
886 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add_prep() local
903 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add() local
940 struct io_poll *poll = io_kiocb_to_cmd(preq, struct io_poll); io_poll_remove() local
[all...]
/linux/drivers/tty/vt/
H A Dvc_screen.c88 struct vcs_poll_data *poll = in vcs_notifier() local
90 int currcons = poll->cons_num; in vcs_notifier()
111 poll->event = code; in vcs_notifier()
112 wake_up_interruptible(&poll->waitq); in vcs_notifier()
113 kill_fasync(&poll->fasync, SIGIO, fa_band); in vcs_notifier()
118 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument
120 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
121 kfree(poll); in vcs_poll_data_free()
127 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local
129 if (poll) in vcs_poll_data_get()
[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.h37 bool poll, int inflight),
38 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll, inflight),
45 __field(bool, poll)
54 __entry->poll = poll;
58 TP_printk("pt=%02X msg_id=%02X seq=%04X transfer_id=%X poll=%u inflight=%d",
60 __entry->transfer_id, __entry->poll, __entry->inflight)
65 u32 timeout, bool poll),
66 TP_ARGS(transfer_id, msg_id, protocol_id, seq, timeout, poll),
74 __field(bool, 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/sound/core/
H A Dmisc.c92 int poll; member
103 int signal, poll; in snd_fasync_work_fn() local
112 poll = fasync->poll; in snd_fasync_work_fn()
114 kill_fasync(&fasync->fasync, signal, poll); in snd_fasync_work_fn()
149 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument
157 fasync->poll = poll; in snd_kill_fasync()
/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.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/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/kernel/
H A Dutsname_sysctl.c65 proc_sys_poll_notify(table->poll); in proc_do_uts_string()
113 .poll = &hostname_poll,
121 .poll = &domainname_poll,
134 proc_sys_poll_notify(table->poll); in uts_proc_notify()
/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/input/
H A Dinput-poller.c17 void (*poll)(struct input_dev *dev); member
43 poller->poll(poller->input); in input_dev_poller_work()
59 poller->poll(poller->input); in input_dev_poller_start()
88 poller->poll = poll_fn; in input_setup_polling()
179 static DEVICE_ATTR(poll, 0644,
/linux/drivers/dma-buf/
H A Ddma-buf.c27 #include <linux/poll.h>
286 * Userspace can query the state of these implicitly tracked fences using poll()
299 * As an alternative to poll(), the set of fences on DMA buffer can be
306 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
309 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
310 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
312 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
337 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
349 poll_wait(file, &dmabuf->poll, pol in dma_buf_poll()
[all...]
/linux/drivers/vhost/
H A Dvhost.c19 #include <linux/poll.h>
165 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 vhost_poll_init(struct vhost_poll * poll,vhost_work_fn_t fn,__poll_t mask,struct vhost_dev * dev,struct vhost_virtqueue * vq) vhost_poll_init() argument
214 vhost_poll_start(struct vhost_poll * poll,struct file * file) vhost_poll_start() argument
235 vhost_poll_stop(struct vhost_poll * poll) vhost_poll_stop() argument
333 vhost_poll_queue(struct vhost_poll * poll) vhost_poll_queue() argument
[all...]
H A Dnet.c139 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member
429 vhost_poll_queue(&vq->poll); in vhost_zerocopy_complete()
454 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local
457 vhost_poll_stop(poll); in vhost_net_disable_vq()
465 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local
472 return vhost_poll_start(poll, sock->file); in vhost_net_enable_vq()
548 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue()
551 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue()
[all...]
H A Dvhost.h9 #include <linux/poll.h>
67 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
70 int vhost_poll_start(struct vhost_poll *poll, struct file *file);
71 void vhost_poll_stop(struct vhost_poll *poll);
72 void vhost_poll_queue(struct vhost_poll *poll);
111 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/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/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/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.c8 #include <poll.h>
209 nevents = poll(&fds, 1, -1); in TEST_F()
276 * We can't poll and wait for the old thread-group in TEST_F()
284 nevents = poll(&fds, 1, 10000 /* wait 5 seconds */); in TEST_F()
313 * exited. So we can't poll before we have taken down the whole in TEST_F()
352 nevents = poll(&fds, 1, -1); in TEST_F()
451 * We can't poll and wait for the old thread-group in TEST_F()
458 * thread-group leaders struct pid. Calling poll after in TEST_F()
464 nevents = poll(&fds, 1, 10000 /* wait 5 seconds */); in TEST_F()
491 nevents = poll( in TEST_F()
[all...]

12345678910>>...30