函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ventfd_ctx_fileget - Acquires a reference to the internal eventfd context.*@file: [in] Eventfd file pointer.* Returns a pointer to the internal eventfd context, otherwise the error* pointer:* -EINVAL : The @fd file descriptor is not an eventfd file.

函数原型:struct eventfd_ctx *eventfd_ctx_fileget(struct file *file)

返回类型:struct eventfd_ctx

参数:

类型参数名称
struct file *file
397  如果f_op不等于eventfd_fops则返回:错误号
400  ctx等于 needed for tty driver, and maybe others
401  对象增加引用
402  返回:ctx
调用者
名称描述
eventfd_ctx_fdgetventfd_ctx_fdget - Acquires a reference to the internal eventfd context.*@fd: [in] Eventfd file descriptor.* Returns a pointer to the internal eventfd context, otherwise the error* pointers returned by the following functions:* eventfd_fget