函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s_parse - Parse a filesystem configuration parameter*@fc: The filesystem context to log errors through

函数原型:int fs_parse(struct fs_context *fc, const struct fs_parameter_description *desc, struct fs_parameter *param, struct fs_parse_result *result)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
const struct fs_parameter_description *desc
struct fs_parameter *param
struct fs_parse_result *result
86  ret等于负Parameter not supported
88  T if value supplied to param 等于非非string
89  T if param was "noxxx" = false
90  For spec_u64 等于0
92  p等于fs_lookup_key(desc, Parameter name )
93  如果非p
98  如果T if value supplied to param 则转到:unknown_parameter
100  如果Parameter name [0]不等于'n'或Parameter name [1]不等于'o'或非Parameter name [2]则转到:unknown_parameter
103  p等于fs_lookup_key(desc, Parameter name + 2)
104  如果非p则转到:unknown_parameter
106  如果非flags按位与"noxxx" is negative param 的值则转到:unknown_parameter
108  For spec_bool = false
109  T if param was "noxxx" = true
112  如果flags按位与The param is deprecated warnf - Store supplementary warning message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary warning message for the process if the process has* enabled the facility.(fc, "%s: Deprecated parameter '%s'", Name for logging purposes , Parameter name )
116  如果T if param was "noxxx" 则转到:okay
121  :The desired parameter type 恒等于__fs_param_wasnt_defined
122  返回:负EINVAL
123  :The desired parameter type 恒等于fs_param_is_u32
124  :The desired parameter type 恒等于fs_param_is_u32_octal
125  :The desired parameter type 恒等于fs_param_is_u32_hex
126  :The desired parameter type 恒等于fs_param_is_s32
127  :The desired parameter type 恒等于fs_param_is_u64
128  :The desired parameter type 恒等于fs_param_is_enum
129  :The desired parameter type 恒等于fs_param_is_string
130  如果The type of value here 不等于Value is a string 则转到:bad_value
132  如果非T if value supplied to param
133  如果flags按位与The value is optional 则转到:okay
135  转到:bad_value
138  默认
139  退出
151  For spec_bool = true
152  转到:okay
157  For spec_bool = true
158  转到:okay
160  如果size恒等于0则
161  For spec_bool = true
162  转到:okay
164  b等于lookup_constant(bool_names, string, - 1)
165  如果b恒等于负1则转到:bad_value
167  For spec_bool 等于b
168  转到:okay
169  默认
170  转到:bad_value
175  转到:maybe_okay
178  转到:maybe_okay
181  转到:maybe_okay
184  转到:maybe_okay
187  转到:maybe_okay
190 name[0]循环
197  转到:bad_value
200  转到:okay
204  转到:okay
217  默认
218  转到:bad_value
223  转到:maybe_okay
226  :The desired parameter type 恒等于fs_param_is_blockdev
227  :The desired parameter type 恒等于fs_param_is_path
228  转到:okay
229  默认
230  BUG()
233  maybe_okay :
234  如果ret小于0则转到:bad_value
236  okay :
237  返回:Option number (returned by fs_parse())
239  bad_value :
240  返回: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: Bad value for '%s'", Name for logging purposes , Parameter name )
241  unknown_parameter :
242  返回:负Parameter not supported
调用者
名称描述
cgroup1_parse_param
bpf_parse_param
smack_fs_context_parse_paramsmack_fs_context_parse_param - Parse a single mount parameter*@fc: The new filesystem context being constructed.*@param: The parameter.* Returns 0 on success, -ENOPARAM to pass the parameter on or anything else on* error.
ramfs_parse_param
rdt_parse_param
cgroup2_parse_param