Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lone_private_mount - create a private clone of a path* This creates a new vfsmount, which will be the clone of @path. The new will* not be attached anywhere in the namespace and will be private (i.e. changes

Proto:struct vfsmount *clone_private_mount(const struct path *path)

Type:struct vfsmount

Parameter:

TypeParameterName
const struct path *path
1872  old_mnt = real_mount(mnt)
1875  If IS_MNT_UNBINDABLE(old_mnt) Then Return ERR_PTR( - EINVAL)
1878  new_mnt = clone_mnt(old_mnt, dentry, CL_PRIVATE)
1879  If IS_ERR(new_mnt) Then 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.
1882  Return mnt