函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lookup_mnt - Return the first child mount mounted at path* "First" means first mounted chronologically

函数原型:struct vfsmount *lookup_mnt(const struct path *path)

返回类型:struct vfsmount

参数:

类型参数名称
const struct path *path
641  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
642  循环
643  seq等于Read side functions for starting and finalizing a read side section.
644  child_mnt等于d the first mount at @dentry on vfsmount @mnt.* call under rcu_read_lock()
645  m = child_mnt ? & mnt : NULL
646  当非all under rcu_read_lock 循环
647  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
648  返回:m
调用者
名称描述
follow_down_one
follow_downFollow down to the covering mount currently visible to userspace. At each* point, the filesystem owning that dentry may be queried as to whether the* caller is permitted to proceed or not.
follow_mountSkip to top of mountpoint pile in refwalk mode for follow_dotdot()
lock_mount