Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Lightweight file lookup - no refcnt increment if fd table isn't shared.* You can use this instead of fget if you satisfy all of the following* conditions:* 1) You must call fput_light before exiting the syscall and returning control* to userspace (i

Proto:static unsigned long __fget_light(unsigned int fd, fmode_t mask)

Type:unsigned long

Parameter:

TypeParameterName
unsigned intfd
fmode_tmask
767  files = files
770  If atomic_read( & ad mostly part) == 1 Then
771  file = The caller must ensure that fd table isn't shared or hold rcu or file lock
772  If Not file || Value for the false possibility is greater at compile time(f_mode & mask) Then Return 0
774  Return file
775  Else
776  file = __fget(fd, mask, 1)
777  If Not file Then Return 0
779  Return FDPUT_FPUT | file
Caller
NameDescribe
__fdget
__fdget_raw