/linux/drivers/virt/acrn/ |
A D | irqfd.c | 36 struct eventfd_ctx *eventfd; member 135 if (IS_ERR(eventfd)) { in acrn_irqfd_assign() 136 ret = PTR_ERR(eventfd); in acrn_irqfd_assign() 140 irqfd->eventfd = eventfd; in acrn_irqfd_assign() 151 if (irqfd->eventfd != tmp->eventfd) in acrn_irqfd_assign() 169 if (eventfd && !IS_ERR(eventfd)) in acrn_irqfd_assign() 170 eventfd_ctx_put(eventfd); in acrn_irqfd_assign() 185 if (IS_ERR(eventfd)) in acrn_irqfd_deassign() 186 return PTR_ERR(eventfd); in acrn_irqfd_deassign() 190 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/virt/kvm/ |
A D | eventfd.c | 327 if (IS_ERR(eventfd)) { in kvm_irqfd_assign() 328 ret = PTR_ERR(eventfd); in kvm_irqfd_assign() 332 irqfd->eventfd = eventfd; in kvm_irqfd_assign() 394 if (irqfd->eventfd != tmp->eventfd) in kvm_irqfd_assign() 448 if (eventfd && !IS_ERR(eventfd)) in kvm_irqfd_assign() 545 if (IS_ERR(eventfd)) in kvm_irqfd_deassign() 551 if (irqfd->eventfd == eventfd && irqfd->gsi == args->gsi) { in kvm_irqfd_deassign() 813 if (IS_ERR(eventfd)) in kvm_assign_ioeventfd_idx() 826 p->eventfd = eventfd; in kvm_assign_ioeventfd_idx() 877 if (IS_ERR(eventfd)) in kvm_deassign_ioeventfd_idx() [all …]
|
/linux/drivers/vfio/ |
A 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/include/trace/events/ |
A D | io_uring.h | 71 unsigned nr_bufs, bool eventfd, long ret), 73 TP_ARGS(ctx, opcode, nr_files, nr_bufs, eventfd, ret), 80 __field( bool, eventfd ) 89 __entry->eventfd = eventfd; 96 __entry->nr_bufs, __entry->eventfd, __entry->ret)
|
/linux/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 | 129 struct eventfd_ctx *eventfd; member 143 struct eventfd_ctx *eventfd; member 4201 new->entries[size - 1].eventfd = eventfd; in __mem_cgroup_usage_register_event() 4277 if (thresholds->primary->entries[i].eventfd != eventfd) in __mem_cgroup_usage_unregister_event() 4301 if (thresholds->primary->entries[i].eventfd == eventfd) in __mem_cgroup_usage_unregister_event() 4335 struct eventfd_ctx *eventfd) in mem_cgroup_usage_unregister_event() argument 4341 struct eventfd_ctx *eventfd) in memsw_cgroup_usage_unregister_event() argument 4357 event->eventfd = eventfd; in mem_cgroup_oom_register_event() 4362 eventfd_signal(eventfd, 1); in mem_cgroup_oom_register_event() 4369 struct eventfd_ctx *eventfd) in mem_cgroup_oom_unregister_event() argument [all …]
|
/linux/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/arch/x86/kvm/ |
A D | hyperv.c | 2053 struct eventfd_ctx *eventfd; in kvm_hvcall_signal_event() local 2084 if (!eventfd) in kvm_hvcall_signal_event() 2087 eventfd_signal(eventfd, 1); in kvm_hvcall_signal_event() 2338 struct eventfd_ctx *eventfd; in kvm_hv_destroy_vm() local 2342 eventfd_ctx_put(eventfd); in kvm_hv_destroy_vm() 2349 struct eventfd_ctx *eventfd; in kvm_hv_eventfd_assign() local 2353 if (IS_ERR(eventfd)) in kvm_hv_eventfd_assign() 2354 return PTR_ERR(eventfd); in kvm_hv_eventfd_assign() 2366 eventfd_ctx_put(eventfd); in kvm_hv_eventfd_assign() 2379 if (!eventfd) in kvm_hv_eventfd_deassign() [all …]
|
A D | Makefile | 13 $(KVM)/eventfd.o $(KVM)/irqchip.o $(KVM)/vfio.o \
|
/linux/drivers/vdpa/vdpa_user/ |
A D | vduse_dev.c | 831 struct vduse_vq_eventfd *eventfd) in vduse_kickfd_setup() argument 837 if (eventfd->index >= dev->vq_num) in vduse_kickfd_setup() 840 index = array_index_nospec(eventfd->index, dev->vq_num); in vduse_kickfd_setup() 842 if (eventfd->fd >= 0) { in vduse_kickfd_setup() 843 ctx = eventfd_ctx_fdget(eventfd->fd); in vduse_kickfd_setup() 846 } else if (eventfd->fd != VDUSE_EVENTFD_DEASSIGN) in vduse_kickfd_setup() 1059 struct vduse_vq_eventfd eventfd; in vduse_dev_ioctl() local 1062 if (copy_from_user(&eventfd, argp, sizeof(eventfd))) in vduse_dev_ioctl() 1065 ret = vduse_kickfd_setup(dev, &eventfd); in vduse_dev_ioctl()
|
/linux/tools/build/feature/ |
A D | test-eventfd.c | 8 return eventfd(0, EFD_NONBLOCK); in main()
|
/linux/tools/virtio/ringtest/ |
A D | main.c | 302 kickfd = eventfd(0, 0); in main() 304 callfd = eventfd(0, 0); in main()
|
/linux/arch/mips/kvm/ |
A D | Makefile | 7 kvm-y := $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o eventfd.o binary_stats.o)
|
/linux/arch/riscv/kvm/ |
A D | Makefile | 15 kvm-y += $(KVM)/eventfd.o
|
/linux/arch/s390/kvm/ |
A D | Makefile | 7 common-objs = $(KVM)/kvm_main.o $(KVM)/eventfd.o $(KVM)/async_pf.o \
|
/linux/tools/cgroup/ |
A D | cgroup_event_listener.c | 47 efd = eventfd(0, 0); in main()
|
/linux/include/uapi/misc/ |
A D | ocxl.h | 65 __s32 eventfd; member
|
/linux/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/arch/arm64/kvm/ |
A D | Makefile | 13 kvm-y := $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o \
|
A D | built-in.a | 5 ../../../virt/kvm/eventfd.o/
|
/linux/fs/ |
A D | .eventfd.o.cmd | 1 …eventfd.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/… 3 source_fs/eventfd.o := fs/eventfd.c 5 deps_fs/eventfd.o := \ 1208 include/linux/eventfd.h \ 1212 fs/eventfd.o: $(deps_fs/eventfd.o) 1214 $(deps_fs/eventfd.o):
|
/linux/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/drivers/infiniband/hw/mlx5/ |
A D | devx.c | 77 struct eventfd_ctx *eventfd; member 2075 event_sub->eventfd = in UVERBS_HANDLER() 2078 if (IS_ERR(event_sub->eventfd)) { in UVERBS_HANDLER() 2079 err = PTR_ERR(event_sub->eventfd); in UVERBS_HANDLER() 2080 event_sub->eventfd = NULL; in UVERBS_HANDLER() 2138 if (event_sub->eventfd) in UVERBS_HANDLER() 2139 eventfd_ctx_put(event_sub->eventfd); in UVERBS_HANDLER() 2447 if (item->eventfd) in dispatch_event_fd() 2448 eventfd_signal(item->eventfd, 1); in dispatch_event_fd() 2727 if (event_sub->eventfd) in devx_free_subscription() [all …]
|