Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:llow_up - Find the mountpoint of path's vfsmount* Given a path, find the mountpoint of its source file system

Proto:int follow_up(struct path *path)

Type:int

Parameter:

TypeParameterName
struct path *path
1111  mnt = real_mount(mnt)
1115  A locking reader exclusively locks out other writers and locking readers,* but doesn't update the sequence number. Acts like a normal spin_lock/unlock.* Don't need preempt_disable() because that is in the spin_lock already.
1116  parent = mnt_parent
1117  If parent == mnt Then
1118  read_sequnlock_excl( & mount_lock)
1119  Return 0
1121  mntget( & mnt)
1122  mountpoint = get a reference to a dentry
1123  read_sequnlock_excl( & mount_lock)
1124  dput(dentry)
1125  dentry = mountpoint
1126  mntput(mnt)
1127  mnt = mnt
1128  Return 1
Caller
NameDescribe
follow_dotdot
devpts_mntgetTry to find a suitable devpts filesystem. We support the following* scenarios:* - The ptmx device node is located in the same directory as the devpts* mount where the pts device nodes are located.* This is e