函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 |
89 | T if param was "noxxx" = false |
90 | For spec_u64 等于0 |
92 | p等于fs_lookup_key(desc, Parameter name ) |
93 | 如果非p则 |
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 |
116 | 如果T if param was "noxxx" 则转到:okay |
122 | 返回:负EINVAL |
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) |
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 |
200 | 转到:okay |
202 | 如果The type of value here 不等于Value is a binary blob 则转到:bad_value |
204 | 转到:okay |
209 | 如果非T if value supplied to param 则转到:bad_value |
213 | 退出 |
216 | ret等于0 |
217 | 默认 |
218 | 转到:bad_value |
221 | 如果For spec_u32{,_octal,_hex}/spec_enum 大于INT_MAX则转到:bad_value |
223 | 转到:maybe_okay |
228 | 转到:okay |
229 | 默认 |
230 | BUG() |
233 | maybe_okay : |
236 | okay : |
239 | bad_value : |
241 | unknown_parameter : |
242 | 返回:负Parameter not supported |
名称 | 描述 |
---|---|
cgroup1_parse_param | |
bpf_parse_param | |
smack_fs_context_parse_param | smack_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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |