函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mplete_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

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

返回类型:int

参数:

类型参数名称
struct nameidata *nd
775  dentry等于dentry
778  如果flags按位与RCU pathwalk mode; semi-internal
779  如果非flags按位与LOOKUP_ROOT的值则mnt = NULL
781  如果此条件成立可能性小(为编译器优化)(lazy_walk - try to switch to ref-walk mode)则返回:负ECHILD
785  如果此条件成立可能性大(为编译器优化)(!(flags & LOOKUP_JUMPED))则返回:0
788  如果此条件成立可能性大(为编译器优化)(!( protected by d_lock & DCACHE_OP_WEAK_REVALIDATE))则返回:0
791  status等于d_weak_revalidate(dentry, flags)
792  如果status大于0则返回:0
795  如果非statusstatus等于负ESTALE
798  返回:status
调用者
名称描述
path_lookupatReturns 0 and nd will be valid on success; Retuns error, otherwise.
path_parentatReturns 0 and nd will be valid on success; Retuns error, otherwise.
do_lastHandle the last step of open()