函数逻辑报告

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_string - Convenience function to just parse a string.

函数原型:int vfs_parse_fs_string(struct fs_context *fc, const char *key, const char *value, size_t v_size)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
const char *key
const char *value
size_tv_size
176  struct fs_parameter param = {Parameter name = key, The type of value here = fs_value_is_string, size = v_size, }
182  如果v_size大于0则
183  string等于kmemdup_nul - Create a NUL-terminated string from unterminated data*@s: The data to stringify*@len: The size of the data*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s with NUL-termination or %NULL
184  如果非string则返回:负ENOMEM
188  ret等于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
189  释放内存
190  返回:ret
调用者
名称描述
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree
generic_parse_monolithicgeneric_parse_monolithic - Parse key[=val][,key[=val]]* mount data*@ctx: The superblock configuration to fill in.*@data: The data to parse* Parse a blob of data that's in key[=val][,key[=val]]* form. This can be