Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mount_subtree

Proto:struct dentry *mount_subtree(struct vfsmount *m, const char *name)

Type:struct dentry

Parameter:

TypeParameterName
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  If IS_ERR(ns) Then
3301  mntput(m)
3302  Return ERR_CAST - Explicitly cast an error-valued pointer to another pointer type*@ptr: The pointer to cast.* Explicitly cast an error-valued pointer to another pointer type in such a* way as to make it clear that's what's going on.
3304  containing namespace = ns
3305  root = mnt
3306  # of mounts in the namespace ++
3307  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.
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  If err Then Return ERR_PTR(err)
3318  s = mnt_sb
3319  atomic_inc( & s_active)
3320  mntput(mnt)
3322  lock for writing
3324  Return dentry