Home
last modified time | relevance | path

Searched refs:eventfd (Results 1 – 25 of 76) sorted by relevance

1234

/linux-5.19.10/drivers/virt/acrn/
Dirqfd.c35 struct eventfd_ctx *eventfd; member
57 eventfd_ctx_remove_wait_queue(irqfd->eventfd, &irqfd->wait, &cnt); in hsm_irqfd_shutdown()
58 eventfd_ctx_put(irqfd->eventfd); in hsm_irqfd_shutdown()
112 struct eventfd_ctx *eventfd = NULL; in acrn_irqfd_assign() local
133 eventfd = eventfd_ctx_fileget(f.file); in acrn_irqfd_assign()
134 if (IS_ERR(eventfd)) { in acrn_irqfd_assign()
135 ret = PTR_ERR(eventfd); in acrn_irqfd_assign()
139 irqfd->eventfd = eventfd; in acrn_irqfd_assign()
150 if (irqfd->eventfd != tmp->eventfd) in acrn_irqfd_assign()
168 if (eventfd && !IS_ERR(eventfd)) in acrn_irqfd_assign()
[all …]
Dioeventfd.c29 struct eventfd_ctx *eventfd; member
47 eventfd_ctx_put(p->eventfd); in acrn_ioeventfd_shutdown()
61 if (p->eventfd == ioeventfd->eventfd && in hsm_ioeventfd_is_conflict()
79 struct eventfd_ctx *eventfd; in acrn_ioeventfd_assign() local
95 eventfd = eventfd_ctx_fdget(args->fd); in acrn_ioeventfd_assign()
96 if (IS_ERR(eventfd)) in acrn_ioeventfd_assign()
97 return PTR_ERR(eventfd); in acrn_ioeventfd_assign()
108 p->eventfd = eventfd; in acrn_ioeventfd_assign()
143 eventfd_ctx_put(eventfd); in acrn_ioeventfd_assign()
151 struct eventfd_ctx *eventfd; in acrn_ioeventfd_deassign() local
[all …]
/linux-5.19.10/virt/kvm/
Deventfd.c127 eventfd_ctx_remove_wait_queue(irqfd->eventfd, &irqfd->wait, &cnt); in irqfd_shutdown()
146 eventfd_ctx_put(irqfd->eventfd); in irqfd_shutdown()
199 eventfd_ctx_do_read(irqfd->eventfd, &cnt); in irqfd_wakeup()
299 struct eventfd_ctx *eventfd = NULL, *resamplefd = NULL; in kvm_irqfd_assign() local
327 eventfd = eventfd_ctx_fileget(f.file); in kvm_irqfd_assign()
328 if (IS_ERR(eventfd)) { in kvm_irqfd_assign()
329 ret = PTR_ERR(eventfd); in kvm_irqfd_assign()
333 irqfd->eventfd = eventfd; in kvm_irqfd_assign()
395 if (irqfd->eventfd != tmp->eventfd) in kvm_irqfd_assign()
421 irqfd->consumer.token = (void *)irqfd->eventfd; in kvm_irqfd_assign()
[all …]
DMakefile.kvm8 kvm-y := $(KVM)/kvm_main.o $(KVM)/eventfd.o $(KVM)/binary_stats.o
/linux-5.19.10/drivers/vfio/
Dvirqfd.c50 eventfd_ctx_do_read(virqfd->eventfd, &cnt); in virqfd_wakeup()
93 eventfd_ctx_remove_wait_queue(virqfd->eventfd, &virqfd->wait, &cnt); in virqfd_shutdown()
95 eventfd_ctx_put(virqfd->eventfd); in virqfd_shutdown()
143 virqfd->eventfd = ctx; in vfio_virqfd_enable()
/linux-5.19.10/include/linux/
Dvmpressure.h42 struct eventfd_ctx *eventfd,
45 struct eventfd_ctx *eventfd);
Dkvm_irqfd.h56 struct eventfd_ctx *eventfd; member
Dvfio.h232 struct eventfd_ctx *eventfd; member
/linux-5.19.10/mm/
Dvmpressure.c367 struct eventfd_ctx *eventfd, const char *args) in vmpressure_register_event() argument
403 ev->efd = eventfd; in vmpressure_register_event()
428 struct eventfd_ctx *eventfd) in vmpressure_unregister_event() argument
435 if (ev->efd != eventfd) in vmpressure_unregister_event()
Dmemcontrol.c131 struct eventfd_ctx *eventfd; member
145 struct eventfd_ctx *eventfd; member
156 struct eventfd_ctx *eventfd, const char *args);
163 struct eventfd_ctx *eventfd);
4097 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold()
4109 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold()
4149 eventfd_signal(ev->eventfd, 1); in mem_cgroup_oom_notify_cb()
4164 struct eventfd_ctx *eventfd, const char *args, enum res_type type) in __mem_cgroup_usage_register_event() argument
4207 new->entries[size - 1].eventfd = eventfd; in __mem_cgroup_usage_register_event()
4244 struct eventfd_ctx *eventfd, const char *args) in mem_cgroup_usage_register_event() argument
[all …]
/linux-5.19.10/tools/build/feature/
Dtest-eventfd.c8 return eventfd(0, EFD_NONBLOCK); in main()
/linux-5.19.10/drivers/misc/habanalabs/common/
Dhabanalabs_ioctl.c640 if (hpriv->notifier_event.eventfd) { in eventfd_register()
645 hpriv->notifier_event.eventfd = eventfd_ctx_fdget(args->eventfd); in eventfd_register()
646 if (IS_ERR(hpriv->notifier_event.eventfd)) { in eventfd_register()
647 rc = PTR_ERR(hpriv->notifier_event.eventfd); in eventfd_register()
648 hpriv->notifier_event.eventfd = NULL; in eventfd_register()
660 if (!hpriv->notifier_event.eventfd) { in eventfd_unregister()
665 eventfd_ctx_put(hpriv->notifier_event.eventfd); in eventfd_unregister()
666 hpriv->notifier_event.eventfd = NULL; in eventfd_unregister()
Ddevice.c289 if (hpriv->notifier_event.eventfd) in hpriv_release()
290 eventfd_ctx_put(hpriv->notifier_event.eventfd); in hpriv_release()
365 if (hpriv->notifier_event.eventfd) in hl_device_release_ctrl()
366 eventfd_ctx_put(hpriv->notifier_event.eventfd); in hl_device_release_ctrl()
1537 if (notifier_event->eventfd) in hl_notifier_event_send()
1538 eventfd_signal(notifier_event->eventfd, 1); in hl_notifier_event_send()
/linux-5.19.10/arch/x86/kvm/
Dxen.c1599 } eventfd; member
1656 struct eventfd_ctx *eventfd = NULL; in kvm_xen_eventfd_assign() local
1679 eventfd = eventfd_ctx_fdget(data->u.evtchn.deliver.eventfd.fd); in kvm_xen_eventfd_assign()
1680 if (IS_ERR(eventfd)) { in kvm_xen_eventfd_assign()
1681 ret = PTR_ERR(eventfd); in kvm_xen_eventfd_assign()
1697 if (eventfd) { in kvm_xen_eventfd_assign()
1698 evtchnfd->deliver.eventfd.ctx = eventfd; in kvm_xen_eventfd_assign()
1720 if (eventfd) in kvm_xen_eventfd_assign()
1721 eventfd_ctx_put(eventfd); in kvm_xen_eventfd_assign()
1740 eventfd_ctx_put(evtchnfd->deliver.eventfd.ctx); in kvm_xen_eventfd_deassign()
[all …]
Dhyperv.c2085 struct eventfd_ctx *eventfd; in kvm_hvcall_signal_event() local
2114 eventfd = idr_find(&hv->conn_to_evt, hc->ingpa); in kvm_hvcall_signal_event()
2116 if (!eventfd) in kvm_hvcall_signal_event()
2119 eventfd_signal(eventfd, 1); in kvm_hvcall_signal_event()
2374 struct eventfd_ctx *eventfd; in kvm_hv_destroy_vm() local
2377 idr_for_each_entry(&hv->conn_to_evt, eventfd, i) in kvm_hv_destroy_vm()
2378 eventfd_ctx_put(eventfd); in kvm_hv_destroy_vm()
2385 struct eventfd_ctx *eventfd; in kvm_hv_eventfd_assign() local
2388 eventfd = eventfd_ctx_fdget(fd); in kvm_hv_eventfd_assign()
2389 if (IS_ERR(eventfd)) in kvm_hv_eventfd_assign()
[all …]
/linux-5.19.10/tools/virtio/ringtest/
Dmain.c302 kickfd = eventfd(0, 0); in main()
304 callfd = eventfd(0, 0); in main()
/linux-5.19.10/tools/cgroup/
Dcgroup_event_listener.c47 efd = eventfd(0, 0); in main()
/linux-5.19.10/drivers/vdpa/vdpa_user/
Dvduse_dev.c840 struct vduse_vq_eventfd *eventfd) in vduse_kickfd_setup() argument
846 if (eventfd->index >= dev->vq_num) in vduse_kickfd_setup()
849 index = array_index_nospec(eventfd->index, dev->vq_num); in vduse_kickfd_setup()
851 if (eventfd->fd >= 0) { in vduse_kickfd_setup()
852 ctx = eventfd_ctx_fdget(eventfd->fd); in vduse_kickfd_setup()
855 } else if (eventfd->fd != VDUSE_EVENTFD_DEASSIGN) in vduse_kickfd_setup()
1068 struct vduse_vq_eventfd eventfd; in vduse_dev_ioctl() local
1071 if (copy_from_user(&eventfd, argp, sizeof(eventfd))) in vduse_dev_ioctl()
1074 ret = vduse_kickfd_setup(dev, &eventfd); in vduse_dev_ioctl()
/linux-5.19.10/include/uapi/misc/
Docxl.h65 __s32 eventfd; member
/linux-5.19.10/Documentation/userspace-api/
Dvduse.rst221 3. Setup the kick eventfd for the specified virtqueues with the VDUSE_VQ_SETUP_KICKFD
222 ioctl. The kick eventfd is used by VDUSE kernel module to notify userspace to
226 4. Listen to the kick eventfd (optional) and consume the available ring. The buffer
/linux-5.19.10/tools/testing/selftests/kvm/x86_64/
Dxen_shinfo_test.c457 irq_fd[0] = eventfd(0, 0); in main()
458 irq_fd[1] = eventfd(0, 0); in main()
522 inj.u.evtchn.deliver.eventfd.port = 0; in main()
523 inj.u.evtchn.deliver.eventfd.fd = irq_fd[1]; in main()
/linux-5.19.10/Documentation/translations/zh_CN/virt/
Dne_overview.rst59 设备使用eventfd作为信令。enclave虚拟机看到通常的接口——本地APIC和IOAPIC——从
/linux-5.19.10/drivers/infiniband/hw/mlx5/
Ddevx.c77 struct eventfd_ctx *eventfd; member
2086 event_sub->eventfd = in UVERBS_HANDLER()
2089 if (IS_ERR(event_sub->eventfd)) { in UVERBS_HANDLER()
2090 err = PTR_ERR(event_sub->eventfd); in UVERBS_HANDLER()
2091 event_sub->eventfd = NULL; in UVERBS_HANDLER()
2149 if (event_sub->eventfd) in UVERBS_HANDLER()
2150 eventfd_ctx_put(event_sub->eventfd); in UVERBS_HANDLER()
2458 if (item->eventfd) in dispatch_event_fd()
2459 eventfd_signal(item->eventfd, 1); in dispatch_event_fd()
2738 if (event_sub->eventfd) in devx_free_subscription()
[all …]
/linux-5.19.10/tools/virtio/
Dvirtio_test.c116 info->kick = eventfd(0, EFD_NONBLOCK); in vq_info_add()
117 info->call = eventfd(0, EFD_NONBLOCK); in vq_info_add()
/linux-5.19.10/Documentation/filesystems/
Dapi-summary.rst122 .. kernel-doc:: fs/eventfd.c

1234