函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fhandle.c Create Date:2022-07-29 11:06:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:SYSCALL_DEFINE5(name_to_handle_at, int, dfd, const char __user *, name, struct file_handle __user *, handle, int __user *, mnt_id, int, flag)

返回类型:

参数:

101  如果flag按位与Follow symbolic links. 按位或Allow empty relative pathname 的值的反的值不等于0则返回:负EINVAL
104  lookup_flags等于如果flag按位与Follow symbolic links. llow links at the end 否则0
105  如果flag按位与Allow empty relative pathname lookup_flags或等于accept empty path [user_... only]
107  err等于user_path_at(dfd, name, lookup_flags, & path)
108  如果非err
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  返回:err