Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_mount_tree

Proto:static void __init init_mount_tree(void)

Type:void

Parameter:Nothing

3716  mnt = vfs_kern_mount( & rootfs_fs_type, 0, "rootfs", NULL)
3717  If IS_ERR(mnt) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
3720  ns = alloc_mnt_ns( & userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?, false)
3721  If IS_ERR(ns) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
3723  m = real_mount(mnt)
3724  containing namespace = ns
3725  root = m
3726  # of mounts in the namespace = 1
3727  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
3728  mnt_ns = ns
3729  get_mnt_ns(ns)
3731  mnt = mnt
3732  dentry = root of the mounted tree
3733  mnt_flags |= MNT_LOCKED
3735  Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.* It can block.
3736  Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values.* It can block.
Caller
NameDescribe
mnt_init