Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs_context.c Create Date:2022-07-28 20:13:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vfs_parse_fs_string - Convenience function to just parse a string.

Proto:int vfs_parse_fs_string(struct fs_context *fc, const char *key, const char *value, size_t v_size)

Type:int

Parameter:

TypeParameterName
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  If v_size > 0 Then
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  If Not string Then Return -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  kfree(string)
190  Return ret
Caller
NameDescribe
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