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:do_handle_to_path

Proto:static int do_handle_to_path(int mountdirfd, struct file_handle *handle, struct path *path)

Type:int

Parameter:

TypeParameterName
intmountdirfd
struct file_handle *handle
struct path *path
142  retval = 0
145  mnt = get_vfsmount_from_fd(mountdirfd)
146  If IS_ERR(mnt) Then
147  retval = PTR_ERR(mnt)
148  Go to out_err
151  handle_dwords = handle_bytes >> 2
152  dentry = exportfs_decode_fh(mnt, (structfid * ) file identifier , handle_dwords, handle_type, vfs_dentry_acceptable, NULL)
156  If IS_ERR(dentry) Then
157  retval = PTR_ERR(dentry)
158  Go to out_mnt
160  Return 0
161  out_mnt :
162  mntput(mnt)
163  out_err :
164  Return retval
Caller
NameDescribe
handle_to_path