Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\eventfd.c Create Date:2022-07-28 20:20:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ventfd_signal - Adds @n to the eventfd counter

Proto:__u64 eventfd_signal(struct eventfd_ctx *ctx, __u64 n)

Type:__u64

Parameter:

TypeParameterName
struct eventfd_ctx *ctx
__u64n
73  If WARN_ON_ONCE(Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(eventfd_wake_count)) Then Return 0
76  spin_lock_irqsave( & lock, flags)
77  this_cpu_inc(eventfd_wake_count)
78  If ULLONG_MAX - * Every time that a write(2) is performed on an eventfd, the * value of the __u64 being written is added to "count" and a * wakeup is performed on "wqh". A read(2) will return the "count" * value to userspace, and will reset "count" to zero. The kernel * s < n Then n = ULLONG_MAX - * Every time that a write(2) is performed on an eventfd, the * value of the __u64 being written is added to "count" and a * wakeup is performed on "wqh". A read(2) will return the "count" * value to userspace, and will reset "count" to zero. The kernel * s
80  * Every time that a write(2) is performed on an eventfd, the * value of the __u64 being written is added to "count" and a * wakeup is performed on "wqh". A read(2) will return the "count" * value to userspace, and will reset "count" to zero. The kernel * s += n
81  If waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_ Then wake_up_locked_poll( & wqh, Epoll event masks )
83  this_cpu_dec(eventfd_wake_count)
84  spin_unlock_irqrestore( & lock, flags)
86  Return n
Caller
NameDescribe
__mem_cgroup_threshold
mem_cgroup_oom_notify_cb
mem_cgroup_oom_register_event
memcg_event_removeUnregister event and free resources.* Gets called from workqueue.
vmpressure_event
aio_completeaio_complete* Called when the io request on the given iocb is complete.
__io_cqring_ev_posted
io_poll_trigger_evfd