函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:path_is_under

函数原型:bool path_is_under(const struct path *path1, const struct path *path2)

返回类型:bool

参数:

类型参数名称
const struct path *path1
const struct path *path2
3578  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.
3579  res等于Return true if path is reachable from root* namespace_sem or mount_lock is held
3580  read_sequnlock_excl( & vfsmount lock may be taken for read to prevent changes to the* vfsmount hash, ie. during mountpoint lookups or walking back* up the tree.* It should be taken for write in all cases where the vfsmount)
3581  返回:res
调用者
名称描述
audit_tag_tree