/linux-5.19.10/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-5.19.10/virt/kvm/ |
D | eventfd.c | 127 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 …]
|
D | Makefile.kvm | 8 kvm-y := $(KVM)/kvm_main.o $(KVM)/eventfd.o $(KVM)/binary_stats.o
|
/linux-5.19.10/drivers/vfio/ |
D | virqfd.c | 50 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/ |
D | vmpressure.h | 42 struct eventfd_ctx *eventfd, 45 struct eventfd_ctx *eventfd);
|
D | kvm_irqfd.h | 56 struct eventfd_ctx *eventfd; member
|
D | vfio.h | 232 struct eventfd_ctx *eventfd; member
|
/linux-5.19.10/mm/ |
D | vmpressure.c | 367 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()
|
D | memcontrol.c | 131 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/ |
D | test-eventfd.c | 8 return eventfd(0, EFD_NONBLOCK); in main()
|
/linux-5.19.10/drivers/misc/habanalabs/common/ |
D | habanalabs_ioctl.c | 640 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()
|
D | device.c | 289 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/ |
D | xen.c | 1599 } 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 …]
|
D | hyperv.c | 2085 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/ |
D | main.c | 302 kickfd = eventfd(0, 0); in main() 304 callfd = eventfd(0, 0); in main()
|
/linux-5.19.10/tools/cgroup/ |
D | cgroup_event_listener.c | 47 efd = eventfd(0, 0); in main()
|
/linux-5.19.10/drivers/vdpa/vdpa_user/ |
D | vduse_dev.c | 840 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/ |
D | ocxl.h | 65 __s32 eventfd; member
|
/linux-5.19.10/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-5.19.10/tools/testing/selftests/kvm/x86_64/ |
D | xen_shinfo_test.c | 457 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/ |
D | ne_overview.rst | 59 设备使用eventfd作为信令。enclave虚拟机看到通常的接口——本地APIC和IOAPIC——从
|
/linux-5.19.10/drivers/infiniband/hw/mlx5/ |
D | devx.c | 77 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/ |
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-5.19.10/Documentation/filesystems/ |
D | api-summary.rst | 122 .. kernel-doc:: fs/eventfd.c
|