Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_vfsmount_from_fd

Proto:static struct vfsmount *get_vfsmount_from_fd(int fd)

Type:struct vfsmount

Parameter:

TypeParameterName
intfd
119  If fd == Special value used to indicateopenat should use the currentworking directory. Then
120  fs = fs
121  spin_lock( & lock)
122  mnt = mntget(mnt)
123  spin_unlock( & lock)
124  Else
125  f = fdget(fd)
126  If Not file Then Return ERR_PTR( - EBADF)
128  mnt = mntget(mnt)
129  fdput(f)
131  Return mnt
Caller
NameDescribe
do_handle_to_path