Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:struct vfsmount *vfs_create_mount(struct fs_context *fc)

Type:struct vfsmount

Parameter:

TypeParameterName
struct fs_context *fc
937  If Not root Then Return ERR_PTR( - EINVAL)
940  mnt = alloc_vfsmnt(source ? : "none")
941  If Not mnt Then Return ERR_PTR( - ENOMEM)
944  If sb_flags & his is a kern_mount call Then mnt_flags = MNT_INTERNAL
947  atomic_inc( & s_active)
948  pointer to superblock = d_sb
949  root of the mounted tree = get a reference to a dentry
950  mnt_mountpoint = root of the mounted tree
951  mnt_parent = mnt
953  lock_mount_hash()
954  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
955  unlock_mount_hash()
956  Return mnt
Caller
NameDescribe
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.