函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fsopen.c Create Date:2022-07-29 10:44:26
Last Modify:2022-05-24 07:35:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Pick a superblock into a context for reconfiguration.

函数原型:SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, flags)

返回类型:

参数:

165  如果非ns_capable(user_ns, Allow setting zone reclaim policy )则返回:负EPERM
168  如果flags按位与spick() flags.按位或FSPICK_SYMLINK_NOFOLLOW按位或FSPICK_NO_AUTOMOUNT按位或FSPICK_EMPTY_PATH的值的反的值不等于0则返回:负EINVAL
174  lookup_flags等于llow links at the end 按位或rce terminal automount
175  如果flags按位与FSPICK_SYMLINK_NOFOLLOWlookup_flags与等于llow links at the end 的反
177  如果flags按位与FSPICK_NO_AUTOMOUNTlookup_flags与等于rce terminal automount 的反
179  如果flags按位与FSPICK_EMPTY_PATHlookup_flags或等于accept empty path [user_... only]
181  ret等于user_path_at(dfd, path, lookup_flags, & target)
182  如果ret小于0则转到:err
185  ret等于负EINVAL
186  如果mnt_root不等于dentry则转到:err_path
189  fc等于fs_context_for_reconfigure(dentry, 0, 0)
190  如果是错误
191  ret等于错误
192  转到:err_path
195  phase等于FS_CONTEXT_RECONF_PARAMS
197  ret等于fscontext_alloc_log(fc)
198  如果ret小于0则转到:err_fc
201  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.
202  返回:Attach a filesystem context to a file and an fd.
204  err_fc :
205  put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
206  err_path :
207  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.
208  err :
209  返回:ret