/linux-6.3-rc2/drivers/virt/acrn/ |
A D | irqfd.c | 35 struct eventfd_ctx *eventfd; member 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() 169 eventfd_ctx_put(eventfd); in acrn_irqfd_assign() 184 if (IS_ERR(eventfd)) in acrn_irqfd_deassign() 185 return PTR_ERR(eventfd); in acrn_irqfd_deassign() 189 if (irqfd->eventfd == eventfd) { in acrn_irqfd_deassign() [all …]
|
A 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() 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() 154 if (IS_ERR(eventfd)) in acrn_ioeventfd_deassign() 155 return PTR_ERR(eventfd); in acrn_ioeventfd_deassign() 159 if (p->eventfd != eventfd) in acrn_ioeventfd_deassign() [all …]
|
/linux-6.3-rc2/virt/kvm/ |
A D | eventfd.c | 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() 449 if (eventfd && !IS_ERR(eventfd)) in kvm_irqfd_assign() 546 if (IS_ERR(eventfd)) in kvm_irqfd_deassign() 552 if (irqfd->eventfd == eventfd && irqfd->gsi == args->gsi) { in kvm_irqfd_deassign() 814 if (IS_ERR(eventfd)) in kvm_assign_ioeventfd_idx() 827 p->eventfd = eventfd; in kvm_assign_ioeventfd_idx() 878 if (IS_ERR(eventfd)) in kvm_deassign_ioeventfd_idx() [all …]
|
A D | Makefile.kvm | 8 kvm-y := $(KVM)/kvm_main.o $(KVM)/eventfd.o $(KVM)/binary_stats.o
|
/linux-6.3-rc2/drivers/vfio/ |
A 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.3-rc2/include/linux/ |
A D | vmpressure.h | 42 struct eventfd_ctx *eventfd, 45 struct eventfd_ctx *eventfd);
|
A D | kvm_irqfd.h | 56 struct eventfd_ctx *eventfd; member
|
/linux-6.3-rc2/mm/ |
A 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()
|
A D | memcontrol.c | 127 struct eventfd_ctx *eventfd; member 141 struct eventfd_ctx *eventfd; member 4330 new->entries[size - 1].eventfd = eventfd; in __mem_cgroup_usage_register_event() 4406 if (thresholds->primary->entries[i].eventfd != eventfd) in __mem_cgroup_usage_unregister_event() 4430 if (thresholds->primary->entries[i].eventfd == eventfd) in __mem_cgroup_usage_unregister_event() 4464 struct eventfd_ctx *eventfd) in mem_cgroup_usage_unregister_event() argument 4470 struct eventfd_ctx *eventfd) in memsw_cgroup_usage_unregister_event() argument 4486 event->eventfd = eventfd; in mem_cgroup_oom_register_event() 4491 eventfd_signal(eventfd, 1); in mem_cgroup_oom_register_event() 4498 struct eventfd_ctx *eventfd) in mem_cgroup_oom_unregister_event() argument [all …]
|
/linux-6.3-rc2/tools/build/feature/ |
A D | test-eventfd.c | 8 return eventfd(0, EFD_NONBLOCK); in main()
|
A D | Makefile | 10 test-eventfd.bin \ 129 $(OUTPUT)test-eventfd.bin:
|
/linux-6.3-rc2/arch/x86/kvm/ |
A 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 …]
|
A D | hyperv.c | 2356 struct eventfd_ctx *eventfd; in kvm_hvcall_signal_event() local 2387 if (!eventfd) in kvm_hvcall_signal_event() 2390 eventfd_signal(eventfd, 1); in kvm_hvcall_signal_event() 2649 struct eventfd_ctx *eventfd; in kvm_hv_destroy_vm() local 2653 eventfd_ctx_put(eventfd); in kvm_hv_destroy_vm() 2660 struct eventfd_ctx *eventfd; in kvm_hv_eventfd_assign() local 2664 if (IS_ERR(eventfd)) in kvm_hv_eventfd_assign() 2665 return PTR_ERR(eventfd); in kvm_hv_eventfd_assign() 2677 eventfd_ctx_put(eventfd); in kvm_hv_eventfd_assign() 2690 if (!eventfd) in kvm_hv_eventfd_deassign() [all …]
|
/linux-6.3-rc2/drivers/accel/habanalabs/common/ |
A D | habanalabs_ioctl.c | 724 if (hpriv->notifier_event.eventfd) { in eventfd_register() 729 hpriv->notifier_event.eventfd = eventfd_ctx_fdget(args->eventfd); in eventfd_register() 730 if (IS_ERR(hpriv->notifier_event.eventfd)) { in eventfd_register() 731 rc = PTR_ERR(hpriv->notifier_event.eventfd); in eventfd_register() 732 hpriv->notifier_event.eventfd = NULL; in eventfd_register() 744 if (!hpriv->notifier_event.eventfd) { in eventfd_unregister() 749 eventfd_ctx_put(hpriv->notifier_event.eventfd); in eventfd_unregister() 750 hpriv->notifier_event.eventfd = NULL; in eventfd_unregister()
|
A D | device.c | 477 if (hpriv->notifier_event.eventfd) in hpriv_release() 478 eventfd_ctx_put(hpriv->notifier_event.eventfd); in hpriv_release() 549 if (hpriv->notifier_event.eventfd) in hl_device_release_ctrl() 550 eventfd_ctx_put(hpriv->notifier_event.eventfd); in hl_device_release_ctrl() 1858 if (!ctx || !ctx->hpriv->notifier_event.eventfd) in hl_device_cond_reset() 1904 if (notifier_event->eventfd) in hl_notifier_event_send() 1905 eventfd_signal(notifier_event->eventfd, 1); in hl_notifier_event_send()
|
/linux-6.3-rc2/tools/virtio/ringtest/ |
A D | main.c | 302 kickfd = eventfd(0, 0); in main() 304 callfd = eventfd(0, 0); in main()
|
/linux-6.3-rc2/tools/cgroup/ |
A D | cgroup_event_listener.c | 47 efd = eventfd(0, 0); in main()
|
/linux-6.3-rc2/include/uapi/misc/ |
A D | ocxl.h | 65 __s32 eventfd; member
|
/linux-6.3-rc2/drivers/vdpa/vdpa_user/ |
A D | vduse_dev.c | 856 struct vduse_vq_eventfd *eventfd) in vduse_kickfd_setup() argument 862 if (eventfd->index >= dev->vq_num) in vduse_kickfd_setup() 865 index = array_index_nospec(eventfd->index, dev->vq_num); in vduse_kickfd_setup() 867 if (eventfd->fd >= 0) { in vduse_kickfd_setup() 868 ctx = eventfd_ctx_fdget(eventfd->fd); in vduse_kickfd_setup() 871 } else if (eventfd->fd != VDUSE_EVENTFD_DEASSIGN) in vduse_kickfd_setup() 1180 struct vduse_vq_eventfd eventfd; in vduse_dev_ioctl() local 1183 if (copy_from_user(&eventfd, argp, sizeof(eventfd))) in vduse_dev_ioctl() 1186 ret = vduse_kickfd_setup(dev, &eventfd); in vduse_dev_ioctl()
|
/linux-6.3-rc2/Documentation/userspace-api/ |
A 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.3-rc2/Documentation/translations/zh_CN/virt/ |
A D | ne_overview.rst | 59 设备使用eventfd作为信令。enclave虚拟机看到通常的接口——本地APIC和IOAPIC——从
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/ |
A D | devx.c | 77 struct eventfd_ctx *eventfd; member 2088 event_sub->eventfd = in UVERBS_HANDLER() 2091 if (IS_ERR(event_sub->eventfd)) { in UVERBS_HANDLER() 2092 err = PTR_ERR(event_sub->eventfd); in UVERBS_HANDLER() 2093 event_sub->eventfd = NULL; in UVERBS_HANDLER() 2151 if (event_sub->eventfd) in UVERBS_HANDLER() 2152 eventfd_ctx_put(event_sub->eventfd); in UVERBS_HANDLER() 2481 if (item->eventfd) in dispatch_event_fd() 2482 eventfd_signal(item->eventfd, 1); in dispatch_event_fd() 2761 if (event_sub->eventfd) in devx_free_subscription() [all …]
|
/linux-6.3-rc2/tools/virtio/ |
A 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.3-rc2/tools/testing/selftests/kvm/x86_64/ |
A D | xen_shinfo_test.c | 545 irq_fd[0] = eventfd(0, 0); in main() 546 irq_fd[1] = eventfd(0, 0); in main() 610 inj.u.evtchn.deliver.eventfd.port = 0; in main() 611 inj.u.evtchn.deliver.eventfd.fd = irq_fd[1]; in main()
|
/linux-6.3-rc2/Documentation/filesystems/ |
A D | api-summary.rst | 122 .. kernel-doc:: fs/eventfd.c
|