函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:34:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:int follow_up(struct path *path)

返回类型:int

参数:

类型参数名称
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  如果parent恒等于mnt
1118  read_sequnlock_excl( & mount_lock)
1119  返回:0
1121  mntget( & mnt)
1122  mountpoint等于获得目录项引用
1123  read_sequnlock_excl( & mount_lock)
1124  dput(dentry)
1125  dentry等于mountpoint
1126  mntput(mnt)
1127  mnt等于mnt
1128  返回:1
调用者
名称描述
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