函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_create_mount - Create a mount for a configured superblock*@fc: The configuration context with the superblock attached* Create a mount to an already configured superblock. If necessary, the* caller should invoke vfs_get_tree() before calling this.

函数原型:struct vfsmount *vfs_create_mount(struct fs_context *fc)

返回类型:struct vfsmount

参数:

类型参数名称
struct fs_context *fc
937  如果非root则返回:错误号
940  mnt等于alloc_vfsmnt(source ? : "none")
941  如果非mnt则返回:错误号
944  如果sb_flags按位与his is a kern_mount call mnt_flags等于MNT_INTERNAL
947  atomic_inc( & s_active)
948  pointer to superblock 等于d_sb
949  root of the mounted tree 等于获得目录项引用
950  mnt_mountpoint等于 root of the mounted tree
951  mnt_parent等于mnt
953  lock_mount_hash()
954  添加链表项
955  unlock_mount_hash()
956  返回:mnt
调用者
名称描述
fc_mount
do_new_mount_fcCreate a new mount using a superblock configuration and request it* be added to the namespace tree.
SYSCALL_DEFINE3Create a kernel mount representation for a new, prepared superblock* (specified by fs_fd) and attach to an open_tree-like file descriptor.