函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fsopen.c Create Date:2022-07-29 10:44:27
Last Modify:2022-05-24 07:35:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check the state and apply the configuration. Note that this function is* allowed to 'steal' the value by setting param->xxx to NULL before returning.

函数原型:static int vfs_fsconfig_locked(struct fs_context *fc, int cmd, struct fs_parameter *param)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
intcmd
struct fs_parameter *param
222  ret等于finish_clean_context(fc)
223  如果ret则返回:ret
226  :cmd恒等于FSCONFIG_CMD_CREATE
227  如果phase不等于FS_CONTEXT_CREATE_PARAMS则返回:负EBUSY
229  如果非mount_capable(fc)则返回:负EPERM
231  phase等于FS_CONTEXT_CREATING
232  ret等于vfs_get_tree - Get the mountable root*@fc: The superblock configuration context.* The filesystem is invoked to get or create a superblock which can then later* be used for mounting. The filesystem places a pointer to the root to be
233  如果ret退出
235  sb等于d_sb
236  ret等于security_sb_kern_mount(sb)
239  退出
241  lease a write lock
242  phase等于FS_CONTEXT_AWAITING_MOUNT
243  返回:0
244  :cmd恒等于FSCONFIG_CMD_RECONFIGURE
245  如果phase不等于FS_CONTEXT_RECONF_PARAMS则返回:负EBUSY
247  phase等于FS_CONTEXT_RECONFIGURING
248  sb等于d_sb
250  ret等于负EPERM
251  退出
253  lock for writing
254  ret等于gure_super - asks filesystem to change superblock parameters*@fc: The superblock and configuration* Alters the configuration parameters of a live superblock.
255  lease a write lock
256  如果ret退出
258  Clean up a context after performing an action on it and put it into a state* from where it can be used to reconfigure a superblock
259  返回:0
260  默认
261  如果phase不等于FS_CONTEXT_CREATE_PARAMSphase不等于FS_CONTEXT_RECONF_PARAMS则返回:负EBUSY
265  返回: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
267  phase等于FS_CONTEXT_FAILED
268  返回:ret