函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lazy_walk - try to switch to ref-walk mode

函数原型:static int unlazy_walk(struct nameidata *nd)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
674  parent等于dentry
676  BUG_ON(!(flags & RCU pathwalk mode; semi-internal ))
678  flags与等于RCU pathwalk mode; semi-internal 的反
679  如果此条件成立可能性小(为编译器优化)(!legitimize_links(nd))则转到:out1
681  如果此条件成立可能性小(为编译器优化)(!path_put is needed afterwards regardless of success or failure )则转到:out
683  如果此条件成立可能性小(为编译器优化)(!legitimize_root(nd))则转到:out
685  _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()
686  BUG_ON( path.dentry.d_inode != Where the name belongs to - NULL is * negative )
687  返回:0
689  out1 :
690  mnt = NULL
691  dentry = NULL
692  out :
693  _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()
694  返回:负ECHILD
调用者
名称描述
complete_walkmplete_walk - successful completion of path walk*@nd: pointer nameidata* If we had been in RCU mode, drop out of it and legitimize nd->path.* Revalidate the final result, unless we'd already done that during
get_link
lookup_fast
may_lookup
pick_link
link_path_walkName resolution.* This is the basic name resolution function, turning a pathname into* the final dentry. We expect 'base' to be positive and a directory.* Returns 0 and nd will have valid dentry and mnt on success.
path_mountpointpath_mountpoint - look up a path to be umounted*@nd: lookup context*@flags: lookup flags*@path: pointer to container for result* Look up the given name, but don't attempt to revalidate the last component.