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:sys_name_to_handle_at: convert name to handle*@dfd: directory relative to which name is interpreted if not absolute*@name: name that should be converted to handle

Proto:SYSCALL_DEFINE5(name_to_handle_at, int, dfd, const char __user *, name, struct file_handle __user *, handle, int __user *, mnt_id, int, flag)

Type:

Parameter:Nothing

101  If (flag & ~(Follow symbolic links. | Allow empty relative pathname )) != 0 Then Return -EINVAL
104  lookup_flags = If flag & Follow symbolic links. Then llow links at the end Else 0
105  If flag & Allow empty relative pathname Then lookup_flags |= accept empty path [user_... only]
107  err = user_path_at(dfd, name, lookup_flags, & path)
108  If Not err Then
109  err = do_sys_name_to_handle( & path, handle, mnt_id)
110  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
112  Return err