| /linux-6.15/io_uring/ |
| H A D | poll.c | 118 return &req->apoll->poll; in io_poll_get_single() 133 poll->head = NULL; in io_init_poll_iocb() 148 poll->head = NULL; in io_poll_remove_entry() 334 struct io_poll *poll; in io_poll_task_func() local 420 poll->head = NULL; in io_poll_wake() 483 poll = kmalloc(sizeof(*poll), GFP_ATOMIC); in __io_queue_proc() 484 if (!poll) { in __io_queue_proc() 494 kfree(poll); in __io_queue_proc() 497 *poll_ptr = poll; in __io_queue_proc() 504 poll->head = head; in __io_queue_proc() [all …]
|
| /linux-6.15/drivers/tty/vt/ |
| H A D | vc_screen.c | 122 kfree(poll); in vcs_poll_data_free() 130 if (poll) in vcs_poll_data_get() 131 return poll; in vcs_poll_data_get() 133 poll = kzalloc(sizeof(*poll), GFP_KERNEL); in vcs_poll_data_get() 134 if (!poll) in vcs_poll_data_get() 149 kfree(poll); in vcs_poll_data_get() 166 kill = poll; in vcs_poll_data_get() 173 return poll; in vcs_poll_data_get() 717 if (poll) { in vcs_poll() 744 if (!poll) in vcs_fasync() [all …]
|
| /linux-6.15/Documentation/userspace-api/media/v4l/ |
| H A 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> 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()` 64 :c:func:`poll()` will return. 80 the ``events`` field), then :c:func:`poll()` will *not* start 82 just poll for events and not for buffers. [all …]
|
| /linux-6.15/Documentation/userspace-api/media/mediactl/ |
| H A 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-6.15/include/trace/events/ |
| H A D | scmi.h | 39 bool poll), 40 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll), 47 __field(bool, poll) 55 __entry->poll = poll; 60 __entry->transfer_id, __entry->poll) 65 u32 timeout, bool poll), 66 TP_ARGS(transfer_id, msg_id, protocol_id, seq, timeout, poll), 74 __field(bool, poll) 83 __entry->poll = poll; 88 __entry->transfer_id, __entry->timeout, __entry->poll)
|
| /linux-6.15/Documentation/devicetree/bindings/serial/ |
| H A D | pl011.yaml | 78 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 113 poll-rate-ms: [ auto-poll ] 114 poll-timeout-ms: [ auto-poll ]
|
| /linux-6.15/Documentation/userspace-api/media/cec/ |
| H A 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-6.15/drivers/iio/common/hid-sensors/ |
| H A D | hid-sensor-attributes.c | 164 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() 224 st->poll.index, sizeof(value), &value); in hid_sensor_write_samp_freq_value() 229 st->poll.report_id, in hid_sensor_write_samp_freq_value() 230 st->poll.index, sizeof(value), &value); in hid_sensor_write_samp_freq_value() 447 &st->poll); in hid_sensor_get_reporting_interval() 449 if (st->poll.units == 0) in hid_sensor_get_reporting_interval() [all …]
|
| /linux-6.15/arch/arm/boot/dts/microchip/ |
| H A 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-6.15/drivers/input/misc/ |
| H A D | wm831x-on.c | 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-6.15/sound/core/ |
| H A D | misc.c | 92 int poll; member 110 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn() 147 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument 155 fasync->poll = poll; in snd_kill_fasync()
|
| /linux-6.15/Documentation/translations/zh_CN/accounting/ |
| H A D | psi.rst | 63 用户可注册触发器,通过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.15/kernel/ |
| H A D | utsname_sysctl.c | 65 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-6.15/tools/testing/selftests/powerpc/nx-gzip/ |
| H A D | gzip_vas.c | 137 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.15/drivers/input/ |
| H A D | input-poller.c | 16 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() 178 static DEVICE_ATTR(poll, 0644,
|
| /linux-6.15/drivers/dma-buf/ |
| H A D | dma-buf.c | 223 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb() 226 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 227 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 266 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll() 278 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 283 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() 301 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 306 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() 530 .poll = dma_buf_poll, 672 init_waitqueue_head(&dmabuf->poll); in dma_buf_export() [all …]
|
| /linux-6.15/Documentation/networking/ |
| H A D | napi.rst | 16 interrupts first (:ref:`busy polling<poll>`). 29 and the associated poll method. struct napi_struct holds the state 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 81 the poll method should return exactly ``budget``. In that case, 86 processed) the poll method should call napi_complete_done() 106 it's not guaranteed that the poll method will be called, even 376 to defer IRQs after busy poll has found no data. 409 1) hardirq -> softirq -> napi poll; basic interrupt delivery 410 2) timer -> softirq -> napi poll; deferred irq processing [all …]
|
| /linux-6.15/drivers/vhost/ |
| H A D | vhost.c | 160 poll->wqh = wqh; in vhost_poll_func() 195 poll->mask = mask; in vhost_poll_init() 196 poll->dev = dev; in vhost_poll_init() 197 poll->wqh = NULL; in vhost_poll_init() 198 poll->vq = vq; in vhost_poll_init() 210 if (poll->wqh) in vhost_poll_start() 217 vhost_poll_stop(poll); in vhost_poll_start() 229 if (poll->wqh) { in vhost_poll_stop() 230 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop() 231 poll->wqh = NULL; in vhost_poll_stop() [all …]
|
| H A D | net.c | 406 vhost_poll_queue(&vq->poll); in vhost_zerocopy_complete() 431 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local 434 vhost_poll_stop(poll); in vhost_net_disable_vq() 442 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local 516 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 519 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 773 vhost_poll_queue(&vq->poll); in handle_tx_copy() 867 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy() 1228 vhost_poll_queue(&vq->poll); in handle_rx() 1239 poll.work); in handle_tx_kick() [all …]
|
| H A D | vhost.h | 53 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, 56 int vhost_poll_start(struct vhost_poll *poll, struct file *file); 57 void vhost_poll_stop(struct vhost_poll *poll); 58 void vhost_poll_queue(struct vhost_poll *poll); 97 struct vhost_poll poll; member
|
| /linux-6.15/drivers/media/mc/ |
| H A D | mc-devnode.c | 95 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() 206 .poll = media_poll,
|
| /linux-6.15/drivers/isdn/mISDN/ |
| H A D | dsp_core.c | 167 static int poll; variable 1127 dsp_poll = poll; in dsp_init() 1141 dsp_tics = poll * HZ / 8000; 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() 1153 if (tics * 8000 == poll * HZ) { in dsp_init() 1155 dsp_poll = poll; in dsp_init() 1156 if (poll >= 64) in dsp_init() [all …]
|
| /linux-6.15/drivers/pci/hotplug/ |
| H A D | cpcihp_zt5550.c | 42 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-6.15/include/linux/ |
| H A D | sysctl.h | 120 static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) in proc_sys_poll_event() argument 122 return (void *)(unsigned long)atomic_read(&poll->event); in proc_sys_poll_event() 139 struct ctl_table_poll *poll; member 215 void proc_sys_poll_notify(struct ctl_table_poll *poll);
|
| /linux-6.15/drivers/firmware/arm_scmi/ |
| H A D | perf.c | 692 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 731 u32 domain, u32 level, bool poll) in scmi_perf_level_set() argument 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 792 u32 domain, u32 *level, bool poll) in scmi_perf_level_get() argument 801 ret = __scmi_perf_level_get(ph, dom, level, poll); in scmi_perf_level_get() 946 unsigned long freq, bool poll) in scmi_dvfs_freq_set() argument [all …]
|