Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Create a new mount using a superblock configuration and request it* be added to the namespace tree.

Proto:static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint, unsigned int mnt_flags)

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
struct path *mountpoint
unsigned intmnt_flags
2751  sb = d_sb
2754  error = security_sb_kern_mount(sb)
2755  If Not error && mount_too_revealing(sb, & mnt_flags) Then error = -EPERM
2758  If Value for the false possibility is greater at compile time(error) Then
2759  fc_drop_locked(fc)
2760  Return 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  If IS_ERR(mnt) Then Return PTR_ERR(mnt)
2769  mnt_warn_timestamp_expiry(mountpoint, mnt)
2771  error = add a mount into a namespace's mount tree
2772  If error < 0 Then mntput(mnt)
2774  Return error
Caller
NameDescribe
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree