函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:graft_tree

函数原型:static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp)

返回类型:int

参数:

类型参数名称
struct mount *mnt
struct mount *p
struct mountpoint *mp
2172  如果s_flags按位与SB_NOUSER则返回:负EINVAL
2175  如果d_is_dir(m_dentry)不等于d_is_dir( root of the mounted tree )则返回:负ENOTDIR
2179  返回:@source_mnt : mount tree to be attached*@nd : place the mount tree @source_mnt is attached*@parent_nd : if non-null, detach the source_mnt from its parent and* store the parent mount and mountpoint dentry
调用者
名称描述
do_loopbackdo loopback mount.
do_add_mountadd a mount into a namespace's mount tree