Home
last modified time | relevance | path

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

1234

/linux-6.6.21/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-6.6.21/virt/kvm/
Deventfd.c135 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 …]
DMakefile.kvm8 kvm-y := $(KVM)/kvm_main.o $(KVM)/eventfd.o $(KVM)/binary_stats.o
/linux-6.6.21/drivers/xen/
Dprivcmd.c851 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/
Dvirqfd.c47 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/
Dvmpressure.h42 struct eventfd_ctx *eventfd,
45 struct eventfd_ctx *eventfd);
Dkvm_irqfd.h56 struct eventfd_ctx *eventfd; member
/linux-6.6.21/mm/
Dvmpressure.c375 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()
Dmemcontrol.c128 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/
Dtest-eventfd.c8 return eventfd(0, EFD_NONBLOCK); in main()
/linux-6.6.21/arch/x86/kvm/
Dxen.c1812 } 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 …]
Dhyperv.c2357 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/
Dhabanalabs_ioctl.c725 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/
Dmain.c302 kickfd = eventfd(0, 0); in main()
304 callfd = eventfd(0, 0); in main()
/linux-6.6.21/tools/cgroup/
Dcgroup_event_listener.c47 efd = eventfd(0, 0); in main()
/linux-6.6.21/include/uapi/misc/
Docxl.h65 __s32 eventfd; member
/linux-6.6.21/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-6.6.21/drivers/vdpa/vdpa_user/
Dvduse_dev.c892 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/
Dne_overview.rst59 设备使用eventfd作为信令。enclave虚拟机看到通常的接口——本地APIC和IOAPIC——从
/linux-6.6.21/drivers/infiniband/hw/mlx5/
Ddevx.c77 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/
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-6.6.21/tools/testing/selftests/kvm/x86_64/
Dxen_shinfo_test.c540 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/
Dqaic_accel.h103 __u32 eventfd; member
/linux-6.6.21/Documentation/filesystems/
Dapi-summary.rst122 .. kernel-doc:: fs/eventfd.c

1234