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_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

Proto:struct eventfd_ctx *eventfd_ctx_fdget(int fd)

Type:struct eventfd_ctx

Parameter:

TypeParameterName
intfd
375  f = fdget(fd)
376  If Not file Then Return ERR_PTR( - EBADF)
378  ctx = 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.
379  fdput(f)
380  Return ctx
Caller
NameDescribe
__io_submit_one
io_eventfd_register