Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mnt_change_mountpoint

Proto:void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt)

Type:void

Parameter:

TypeParameterName
struct mount *parent
struct mountpoint *mp
struct mount *mnt
860  old_mp = where is it mounted
861  old_parent = mnt_parent
863  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
864  hlist_del_init( & list mounts with the same mountpoint )
865  hlist_del_init_rcu - deletes entry from hash list with re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on the node return true after this. It is* useful for RCU based read lockfree traversal if the writer side
867  vfsmount lock must be held for write
869  alled with namespace_lock and vfsmount lock
870  vfsmount lock must be held for read
Caller
NameDescribe
attach_recursive_mnt@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
restore_mounts