函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\eventfd.c Create Date:2022-07-29 10:52:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ventfd_signal - Adds @n to the eventfd counter

函数原型:__u64 eventfd_signal(struct eventfd_ctx *ctx, __u64 n)

返回类型:__u64

参数:

类型参数名称
struct eventfd_ctx *ctx
__u64n
73  如果WARN_ON_ONCE(Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(eventfd_wake_count))则返回:0
76  spin_lock_irqsave( & lock, flags)
77  this_cpu_inc(eventfd_wake_count)
78  如果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小于nn等于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  如果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_wake_up_locked_poll( & wqh, Epoll event masks )
83  this_cpu_dec(eventfd_wake_count)
84  spin_unlock_irqrestore( & lock, flags)
86  返回:n
调用者
名称描述
__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