函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create a new mount using a superblock configuration and request it* be added to the namespace tree.

函数原型:static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint, unsigned int mnt_flags)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
struct path *mountpoint
unsigned intmnt_flags
2751  sb等于d_sb
2754  error等于security_sb_kern_mount(sb)
2755  如果非errormount_too_revealing(sb, & mnt_flags)则error等于负EPERM
2758  如果此条件成立可能性小(为编译器优化)(error)则
2759  fc_drop_locked(fc)
2760  返回:error
2763  lease a write lock
2765  mnt等于vfs_create_mount - Create a mount for a configured superblock*@fc: The configuration context with the superblock attached* Create a mount to an already configured superblock. If necessary, the* caller should invoke vfs_get_tree() before calling this.
2766  如果是错误则返回:错误
2769  mnt_warn_timestamp_expiry(mountpoint, mnt)
2771  error等于add a mount into a namespace's mount tree
2772  如果error小于0则mntput(mnt)
2774  返回:error
调用者
名称描述
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree