Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int complete_walk(struct nameidata *nd)

Type:int

Parameter:

TypeParameterName
struct nameidata *nd
775  dentry = dentry
778  If flags & RCU pathwalk mode; semi-internal Then
779  If Not (flags & LOOKUP_ROOT) Then mnt = NULL
781  If Value for the false possibility is greater at compile time(lazy_walk - try to switch to ref-walk mode) Then Return -ECHILD
785  If Value is more likely to compile time(!(flags & LOOKUP_JUMPED)) Then Return 0
788  If Value is more likely to compile time(!( protected by d_lock & DCACHE_OP_WEAK_REVALIDATE)) Then Return 0
791  status = d_weak_revalidate(dentry, flags)
792  If status > 0 Then Return 0
795  If Not status Then status = -ESTALE
798  Return status
Caller
NameDescribe
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()