Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:struct eventfd_ctx *eventfd_ctx_fileget(struct file *file)

Type:struct eventfd_ctx

Parameter:

TypeParameterName
struct file *file
397  If f_op != eventfd_fops Then Return ERR_PTR( - EINVAL)
400  ctx = needed for tty driver, and maybe others
401  kref_get - increment refcount for object.*@kref: object.
402  Return ctx
Caller
NameDescribe
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