函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_mount_tree

函数原型:static void __init init_mount_tree(void)

返回类型:void

参数:

3716  mnt等于vfs_kern_mount( & rootfs_fs_type, 0, "rootfs", NULL)
3717  如果是错误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  如果是错误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  添加链表项
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.
调用者
名称描述
mnt_init