函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_parse_fs_param - Add a single parameter to a superblock config*@fc: The filesystem context to modify*@param: The parameter* A single mount option in string form is applied to the filesystem context* being set up

函数原型:int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
struct fs_parameter *param
130  如果非Parameter name 则返回: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, "Unnamed parameter\n")
133  ret等于Check for a common mount option that manipulates s_flags.
134  如果ret不等于负Parameter not supported 则返回:ret
137  ret等于security_fs_context_parse_param(fc, param)
138  如果ret不等于负Parameter not supported 则返回:ret
144  如果parse_param
145  ret等于parse_param(fc, param)
146  如果ret不等于负Parameter not supported 则返回:ret
153  如果字符串比较恒等于0则
154  如果The type of value here 不等于fs_value_is_string则返回: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, "VFS: Non-string source")
156  如果source则返回: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, "VFS: Multiple sources")
158  source等于string
159  string = NULL
160  返回:0
163  返回: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: Unknown parameter '%s'", name, Parameter name )
调用者
名称描述
vfs_parse_fs_stringvfs_parse_fs_string - Convenience function to just parse a string.
vfs_fsconfig_lockedCheck the state and apply the configuration. Note that this function is* allowed to 'steal' the value by setting param->xxx to NULL before returning.