/linux-6.6.21/drivers/virt/acrn/ |
D | irqfd.c | 35 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 …]
|
D | ioeventfd.c | 29 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-6.6.21/virt/kvm/ |
D | eventfd.c | 135 eventfd_ctx_remove_wait_queue(irqfd->eventfd, &irqfd->wait, &cnt); in irqfd_shutdown() 154 eventfd_ctx_put(irqfd->eventfd); in irqfd_shutdown() 207 eventfd_ctx_do_read(irqfd->eventfd, &cnt); in irqfd_wakeup() 307 struct eventfd_ctx *eventfd = NULL, *resamplefd = NULL; in kvm_irqfd_assign() local 335 eventfd = eventfd_ctx_fileget(f.file); in kvm_irqfd_assign() 336 if (IS_ERR(eventfd)) { in kvm_irqfd_assign() 337 ret = PTR_ERR(eventfd); in kvm_irqfd_assign() 341 irqfd->eventfd = eventfd; in kvm_irqfd_assign() 403 if (irqfd->eventfd != tmp->eventfd) in kvm_irqfd_assign() 429 irqfd->consumer.token = (void *)irqfd->eventfd; in kvm_irqfd_assign() [all …]
|
D | Makefile.kvm | 8 kvm-y := $(KVM)/kvm_main.o $(KVM)/eventfd.o $(KVM)/binary_stats.o
|
/linux-6.6.21/drivers/xen/ |
D | privcmd.c | 851 struct eventfd_ctx *eventfd; member 872 eventfd_ctx_remove_wait_queue(kirqfd->eventfd, &kirqfd->wait, &cnt); in irqfd_shutdown() 873 eventfd_ctx_put(kirqfd->eventfd); in irqfd_shutdown() 882 eventfd_ctx_do_read(kirqfd->eventfd, &cnt); in irqfd_inject() 954 kirqfd->eventfd = eventfd_ctx_fileget(f.file); in privcmd_irqfd_assign() 955 if (IS_ERR(kirqfd->eventfd)) { in privcmd_irqfd_assign() 956 ret = PTR_ERR(kirqfd->eventfd); in privcmd_irqfd_assign() 970 if (kirqfd->eventfd == tmp->eventfd) { in privcmd_irqfd_assign() 996 eventfd_ctx_put(kirqfd->eventfd); in privcmd_irqfd_assign() 1009 struct eventfd_ctx *eventfd; in privcmd_irqfd_deassign() local [all …]
|
/linux-6.6.21/drivers/vfio/ |
D | virqfd.c | 47 eventfd_ctx_do_read(virqfd->eventfd, &cnt); in virqfd_wakeup() 90 eventfd_ctx_remove_wait_queue(virqfd->eventfd, &virqfd->wait, &cnt); in virqfd_shutdown() 92 eventfd_ctx_put(virqfd->eventfd); in virqfd_shutdown() 140 virqfd->eventfd = ctx; in vfio_virqfd_enable()
|
/linux-6.6.21/include/linux/ |
D | vmpressure.h | 42 struct eventfd_ctx *eventfd, 45 struct eventfd_ctx *eventfd);
|
D | kvm_irqfd.h | 56 struct eventfd_ctx *eventfd; member
|
/linux-6.6.21/mm/ |
D | vmpressure.c | 375 struct eventfd_ctx *eventfd, const char *args) in vmpressure_register_event() argument 411 ev->efd = eventfd; in vmpressure_register_event() 436 struct eventfd_ctx *eventfd) in vmpressure_unregister_event() argument 443 if (ev->efd != eventfd) in vmpressure_unregister_event()
|
D | memcontrol.c | 128 struct eventfd_ctx *eventfd; member 142 struct eventfd_ctx *eventfd; member 153 struct eventfd_ctx *eventfd, const char *args); 160 struct eventfd_ctx *eventfd); 4231 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold() 4243 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold() 4283 eventfd_signal(ev->eventfd, 1); in mem_cgroup_oom_notify_cb() 4298 struct eventfd_ctx *eventfd, const char *args, enum res_type type) in __mem_cgroup_usage_register_event() argument 4341 new->entries[size - 1].eventfd = eventfd; in __mem_cgroup_usage_register_event() 4378 struct eventfd_ctx *eventfd, const char *args) in mem_cgroup_usage_register_event() argument [all …]
|
/linux-6.6.21/tools/build/feature/ |
D | test-eventfd.c | 8 return eventfd(0, EFD_NONBLOCK); in main()
|
/linux-6.6.21/arch/x86/kvm/ |
D | xen.c | 1812 } eventfd; member 1870 struct eventfd_ctx *eventfd = NULL; in kvm_xen_eventfd_assign() local 1890 eventfd = eventfd_ctx_fdget(data->u.evtchn.deliver.eventfd.fd); in kvm_xen_eventfd_assign() 1891 if (IS_ERR(eventfd)) { in kvm_xen_eventfd_assign() 1892 ret = PTR_ERR(eventfd); in kvm_xen_eventfd_assign() 1908 if (eventfd) { in kvm_xen_eventfd_assign() 1909 evtchnfd->deliver.eventfd.ctx = eventfd; in kvm_xen_eventfd_assign() 1931 if (eventfd) in kvm_xen_eventfd_assign() 1932 eventfd_ctx_put(eventfd); in kvm_xen_eventfd_assign() 1951 eventfd_ctx_put(evtchnfd->deliver.eventfd.ctx); in kvm_xen_eventfd_deassign() [all …]
|
D | hyperv.c | 2357 struct eventfd_ctx *eventfd; in kvm_hvcall_signal_event() local 2386 eventfd = idr_find(&hv->conn_to_evt, hc->ingpa); in kvm_hvcall_signal_event() 2388 if (!eventfd) in kvm_hvcall_signal_event() 2391 eventfd_signal(eventfd, 1); in kvm_hvcall_signal_event() 2650 struct eventfd_ctx *eventfd; in kvm_hv_destroy_vm() local 2653 idr_for_each_entry(&hv->conn_to_evt, eventfd, i) in kvm_hv_destroy_vm() 2654 eventfd_ctx_put(eventfd); in kvm_hv_destroy_vm() 2661 struct eventfd_ctx *eventfd; in kvm_hv_eventfd_assign() local 2664 eventfd = eventfd_ctx_fdget(fd); in kvm_hv_eventfd_assign() 2665 if (IS_ERR(eventfd)) in kvm_hv_eventfd_assign() [all …]
|
/linux-6.6.21/drivers/accel/habanalabs/common/ |
D | habanalabs_ioctl.c | 725 if (hpriv->notifier_event.eventfd) { in eventfd_register() 730 hpriv->notifier_event.eventfd = eventfd_ctx_fdget(args->eventfd); in eventfd_register() 731 if (IS_ERR(hpriv->notifier_event.eventfd)) { in eventfd_register() 732 rc = PTR_ERR(hpriv->notifier_event.eventfd); in eventfd_register() 733 hpriv->notifier_event.eventfd = NULL; in eventfd_register() 745 if (!hpriv->notifier_event.eventfd) { in eventfd_unregister() 750 eventfd_ctx_put(hpriv->notifier_event.eventfd); in eventfd_unregister() 751 hpriv->notifier_event.eventfd = NULL; in eventfd_unregister()
|
/linux-6.6.21/tools/virtio/ringtest/ |
D | main.c | 302 kickfd = eventfd(0, 0); in main() 304 callfd = eventfd(0, 0); in main()
|
/linux-6.6.21/tools/cgroup/ |
D | cgroup_event_listener.c | 47 efd = eventfd(0, 0); in main()
|
/linux-6.6.21/include/uapi/misc/ |
D | ocxl.h | 65 __s32 eventfd; member
|
/linux-6.6.21/Documentation/userspace-api/ |
D | vduse.rst | 221 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-6.6.21/drivers/vdpa/vdpa_user/ |
D | vduse_dev.c | 892 struct vduse_vq_eventfd *eventfd) in vduse_kickfd_setup() argument 898 if (eventfd->index >= dev->vq_num) in vduse_kickfd_setup() 901 index = array_index_nospec(eventfd->index, dev->vq_num); in vduse_kickfd_setup() 903 if (eventfd->fd >= 0) { in vduse_kickfd_setup() 904 ctx = eventfd_ctx_fdget(eventfd->fd); in vduse_kickfd_setup() 907 } else if (eventfd->fd != VDUSE_EVENTFD_DEASSIGN) in vduse_kickfd_setup() 1262 struct vduse_vq_eventfd eventfd; in vduse_dev_ioctl() local 1265 if (copy_from_user(&eventfd, argp, sizeof(eventfd))) in vduse_dev_ioctl() 1268 ret = vduse_kickfd_setup(dev, &eventfd); in vduse_dev_ioctl()
|
/linux-6.6.21/Documentation/translations/zh_CN/virt/ |
D | ne_overview.rst | 59 设备使用eventfd作为信令。enclave虚拟机看到通常的接口——本地APIC和IOAPIC——从
|
/linux-6.6.21/drivers/infiniband/hw/mlx5/ |
D | devx.c | 77 struct eventfd_ctx *eventfd; member 2107 event_sub->eventfd = in UVERBS_HANDLER() 2110 if (IS_ERR(event_sub->eventfd)) { in UVERBS_HANDLER() 2111 err = PTR_ERR(event_sub->eventfd); in UVERBS_HANDLER() 2112 event_sub->eventfd = NULL; in UVERBS_HANDLER() 2170 if (event_sub->eventfd) in UVERBS_HANDLER() 2171 eventfd_ctx_put(event_sub->eventfd); in UVERBS_HANDLER() 2500 if (item->eventfd) in dispatch_event_fd() 2501 eventfd_signal(item->eventfd, 1); in dispatch_event_fd() 2780 if (event_sub->eventfd) in devx_free_subscription() [all …]
|
/linux-6.6.21/tools/virtio/ |
D | virtio_test.c | 116 info->kick = eventfd(0, EFD_NONBLOCK); in vq_info_add() 117 info->call = eventfd(0, EFD_NONBLOCK); in vq_info_add()
|
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/ |
D | xen_shinfo_test.c | 540 irq_fd[0] = eventfd(0, 0); in main() 541 irq_fd[1] = eventfd(0, 0); in main() 605 inj.u.evtchn.deliver.eventfd.port = 0; in main() 606 inj.u.evtchn.deliver.eventfd.fd = irq_fd[1]; in main()
|
/linux-6.6.21/include/uapi/drm/ |
D | qaic_accel.h | 103 __u32 eventfd; member
|
/linux-6.6.21/Documentation/filesystems/ |
D | api-summary.rst | 122 .. kernel-doc:: fs/eventfd.c
|