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_fget - Acquire a reference of an eventfd file descriptor.*@fd: [in] Eventfd file descriptor.* Returns a pointer to the eventfd file structure in case of success, or the* following error pointer:* -EBADF : Invalid @fd file descriptor.

Proto:struct file *eventfd_fget(int fd)

Type:struct file

Parameter:

TypeParameterName
intfd
351  file = fget(fd)
352  If Not file Then Return ERR_PTR( - EBADF)
354  If f_op != eventfd_fops Then
355  fput(file)
356  Return ERR_PTR( - EINVAL)
359  Return file