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:finish_automount

Proto:int finish_automount(struct vfsmount *m, struct path *path)

Type:int

Parameter:

TypeParameterName
struct vfsmount *m
struct path *path
2832  mnt = real_mount(m)
2837  BUG_ON(vfsmount lock must be held for write < 2)
2839  If pointer to superblock == mnt_sb && root of the mounted tree == dentry Then
2841  err = -ELOOP
2842  Go to fail
2845  err = add a mount into a namespace's mount tree
2846  If Not err Then Return 0
2848  fail :
2850  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
2851  namespace_lock()
2852  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2853  namespace_unlock()
2855  mntput(m)
2856  mntput(m)
2857  Return err
Caller
NameDescribe
follow_automountPerform an automount* - return -EISDIR to tell follow_managed() to stop and return the path we* were called with.