Home
last modified time | relevance | path

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

12345678910>>...40

/linux-6.6.21/io_uring/
Dpoll.c116 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()
177 init_waitqueue_func_entry(&poll->wait, io_poll_wake); in io_init_poll_iocb()
180 static inline void io_poll_remove_entry(struct io_poll *poll) in io_poll_remove_entry() argument
182 struct wait_queue_head *head = smp_load_acquire(&poll->head); in io_poll_remove_entry()
186 list_del_init(&poll->wait.entry); in io_poll_remove_entry()
187 poll->head = NULL; in io_poll_remove_entry()
[all …]
/linux-6.6.21/drivers/tty/vt/
Dvc_screen.c89 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
130 if (poll) in vcs_poll_data_get()
[all …]
/linux-6.6.21/arch/um/os-Linux/
Dsigio.c38 struct pollfd *poll; member
61 n = poll(fds->poll, fds->used, -1); 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()
173 if (all_sigio_fds.poll[i].fd == fd) in __add_sigio_fd()
179 p = &all_sigio_fds.poll[i]; in __add_sigio_fd()
[all …]
/linux-6.6.21/Documentation/userspace-api/media/v4l/
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-6.6.21/Documentation/userspace-api/media/mediactl/
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-6.6.21/include/trace/events/
Dscmi.h37 bool poll),
38 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll),
45 __field(bool, poll)
53 __entry->poll = poll;
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;
86 __entry->transfer_id, __entry->timeout, __entry->poll)
/linux-6.6.21/Documentation/devicetree/bindings/serial/
Dpl011.yaml78 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 ]
/linux-6.6.21/Documentation/userspace-api/media/cec/
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-6.6.21/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c160 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-6.6.21/arch/arm/boot/dts/microchip/
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-6.6.21/drivers/input/misc/
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-6.6.21/Documentation/translations/zh_CN/accounting/
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-6.6.21/sound/core/
Dmisc.c163 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()
/linux-6.6.21/kernel/
Dutsname_sysctl.c65 proc_sys_poll_notify(table->poll); in proc_do_uts_string()
113 .poll = &hostname_poll,
121 .poll = &domainname_poll,
135 proc_sys_poll_notify(table->poll); in uts_proc_notify()
/linux-6.6.21/drivers/input/
Dinput-poller.c16 void (*poll)(struct input_dev *dev); member
42 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-6.6.21/tools/testing/selftests/powerpc/nx-gzip/
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-6.6.21/Documentation/networking/
Dnapi.rst16 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 …]
/linux-6.6.21/drivers/dma-buf/
Ddma-buf.c206 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb()
209 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
210 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
212 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
237 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
249 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
251 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
261 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
266 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
284 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
[all …]
/linux-6.6.21/drivers/vhost/
Dvhost.c157 struct vhost_poll *poll; in vhost_poll_func() local
159 poll = container_of(pt, struct vhost_poll, table); in vhost_poll_func()
160 poll->wqh = wqh; in vhost_poll_func()
161 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
167 struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); in vhost_poll_wakeup() local
168 struct vhost_work *work = &poll->work; in vhost_poll_wakeup()
170 if (!(key_to_poll(key) & poll->mask)) in vhost_poll_wakeup()
173 if (!poll->dev->use_worker) in vhost_poll_wakeup()
176 vhost_poll_queue(poll); in vhost_poll_wakeup()
189 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, in vhost_poll_init() argument
[all …]
Dvhost.h51 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
54 int vhost_poll_start(struct vhost_poll *poll, struct file *file);
55 void vhost_poll_stop(struct vhost_poll *poll);
56 void vhost_poll_queue(struct vhost_poll *poll);
95 struct vhost_poll poll; member
/linux-6.6.21/drivers/media/mc/
Dmc-devnode.c95 struct poll_table_struct *poll) in media_poll() argument
101 if (!devnode->fops->poll) in media_poll()
103 return devnode->fops->poll(filp, poll); in media_poll()
207 .poll = media_poll,
/linux-6.6.21/drivers/firmware/arm_scmi/
Dperf.c624 u32 domain, u32 level, bool poll) in scmi_perf_msg_level_set() argument
634 t->hdr.poll_completion = poll; in scmi_perf_msg_level_set()
647 bool poll) in __scmi_perf_level_set() argument
659 return scmi_perf_msg_level_set(ph, dom->id, level, poll); in __scmi_perf_level_set()
663 u32 domain, u32 level, bool poll) in scmi_perf_level_set() argument
681 return __scmi_perf_level_set(ph, dom, level, poll); in scmi_perf_level_set()
685 u32 domain, u32 *level, bool poll) in scmi_perf_msg_level_get() argument
695 t->hdr.poll_completion = poll; in scmi_perf_msg_level_get()
708 bool poll) in __scmi_perf_level_get() argument
717 return scmi_perf_msg_level_get(ph, dom->id, level, poll); in __scmi_perf_level_get()
[all …]
/linux-6.6.21/drivers/isdn/mISDN/
Ddsp_core.c167 static int poll; variable
173 module_param(poll, uint, S_IRUGO | S_IWUSR);
1126 dsp_poll = poll; in dsp_init()
1130 "maximum.\n", __func__, poll, MAX_POLL); in dsp_init()
1140 dsp_tics = poll * HZ / 8000; in dsp_init()
1141 if (dsp_tics * 8000 != poll * HZ) { in dsp_init()
1144 "%d HZ.\n", poll, HZ); in dsp_init()
1149 poll = 8; in dsp_init()
1150 while (poll <= MAX_POLL) { in dsp_init()
1151 tics = (poll * HZ) / 8000; in dsp_init()
[all …]
/linux-6.6.21/include/linux/
Dsysctl.h122 static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) in proc_sys_poll_event() argument
124 return (void *)(unsigned long)atomic_read(&poll->event); in proc_sys_poll_event()
152 struct ctl_table_poll *poll; member
223 void proc_sys_poll_notify(struct ctl_table_poll *poll);
/linux-6.6.21/drivers/pci/hotplug/
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");

12345678910>>...40