函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.

函数原型:void put_fs_context(struct fs_context *fc)

返回类型:void

参数:

类型参数名称
struct fs_context *fc
493  如果root
494  sb等于d_sb
495  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
496  root = NULL
497  降低活跃性
500  如果need_freeopsfreefree(fc)
503  security_free_mnt_opts( & security)
504  put_net(net_ns)
505  put_user_ns(user_ns)
506  put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released
507  Free a logging structure.
508  put_filesystem(fs_type)
509  释放内存
510  释放内存
调用者
名称描述
reconfigure_single
vfs_kern_mount
do_umount_root
do_remounthange filesystem flags. dir should be a physical root of filesystem.* If you've mounted a non-root directory somewhere and want to do remount* on it - tough luck.
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree
alloc_fs_contextalloc_fs_context - Create a filesystem context.*@fs_type: The filesystem type.*@reference: The dentry from which this one derives (or NULL)*@sb_flags: Filesystem/superblock flags (SB_*)*@sb_flags_mask: Applicable members of @sb_flags
vfs_dup_fs_contextvfs_dup_fc_config: Duplicate a filesystem context.*@src_fc: The context to copy.
fscontext_release
fscontext_create_fdAttach a filesystem context to a file and an fd.
SYSCALL_DEFINE2Open a filesystem by name so that it can be configured for mounting.* We are allowed to specify a container in which the filesystem will be* opened, thereby indicating which namespaces will be used (notably, which
SYSCALL_DEFINE3Pick a superblock into a context for reconfiguration.
do_emergency_remount_callback