函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mount_subtree

函数原型:struct dentry *mount_subtree(struct vfsmount *m, const char *name)

返回类型:struct dentry

参数:

类型参数名称
struct vfsmount *m
const char *name
3293  mnt等于real_mount(m)
3299  ns等于alloc_mnt_ns( & userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?, true)
3300  如果是错误
3301  mntput(m)
3302  返回:错误指示
3304  containing namespace 等于ns
3305  root等于mnt
3306  # of mounts in the namespace 自加
3307  添加链表项
3309  err等于vfs_path_lookup - lookup a file path relative to a dentry-vfsmount pair*@dentry: pointer to dentry of the base directory*@mnt: pointer to vfs mount of the base directory*@name: pointer to file name*@flags: lookup flags*@path: pointer to struct path to fill
3312  put_mnt_ns(ns)
3314  如果err则返回:错误号
3318  s等于mnt_sb
3319  atomic_inc( & s_active)
3320  mntput(mnt)
3322  lock for writing
3324  返回:dentry