函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s_lookup_param - Look up a path referred to by a parameter*@fc: The filesystem context to log errors through.*@param: The parameter.*@want_bdev: T if want a blockdev*@_path: The result of the lookup

函数原型:int fs_lookup_param(struct fs_context *fc, struct fs_parameter *param, bool want_bdev, struct path *_path)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
struct fs_parameter *param
boolwant_bdev
struct path *_path
259  flags等于0
264  :The type of value here 恒等于Value is a string
265  f等于getname_kernel(string)
266  如果是错误则返回:错误
268  put_f = true
269  退出
270  :The type of value here 恒等于Value is a filename* + dirfd + AT_EMPTY_PATH
271  flags等于accept empty path [user_... only]
273  :The type of value here 恒等于Value is a filename* + dirfd
274  f等于name
275  put_f = false
276  退出
277  默认
278  返回:valf - Store supplementary invalid argument error message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary error message for the process if the process has* enabled the facility and return -EINVAL.(fc, "%s: not usable as path", Parameter name )
281  refcnt自加
282  ret等于filename_lookup(dirfd, f, flags, _path, NULL)
283  如果ret小于0则
284  rf - Store supplementary error message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary error message for the process if the process has* enabled the facility.(fc, "%s: Lookup failure for '%s'", Parameter name , pointer to actual string )
285  转到:out
288  如果want_bdev且非S_ISBLK(i_mode)则
290  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.
291  dentry = NULL
292  mnt = NULL
293  rf - Store supplementary error message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary error message for the process if the process has* enabled the facility.(fc, "%s: Non-blockdev passed as '%s'", Parameter name , pointer to actual string )
295  ret等于负ENOTBLK
298  out :
299  如果put_fputname(f)
301  返回:ret