函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:eventfd_ctx_do_read

函数原型:static void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt)

返回类型:void

参数:

类型参数名称
struct eventfd_ctx *ctx
__u64 *cnt
186  cnt等于如果flags按位与CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining* new flags, since they might collide with O_* ones. We want* to re-use O_* flags that couldn't possibly have a meaning* from eventfd, in order to leave a free define-space for* shared O_* flags.则1否则* 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
187  * 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减等于cnt
调用者
名称描述
eventfd_ctx_remove_wait_queueventfd_ctx_remove_wait_queue - Read the current counter and removes wait queue
eventfd_read