函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:handle_lookup_down

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

返回类型:int

参数:

类型参数名称
struct nameidata *nd
2265  path等于path
2266  inode等于 path.dentry.d_inode
2267  seq等于seq
2270  如果flags按位与RCU pathwalk mode; semi-internal
2276  如果此条件成立可能性小(为编译器优化)(!Try to skip to top of mountpoint pile in rcuwalk mode. Fail if* we meet a managed dentry that would need blocking.)则返回:负ECHILD
2278  否则
2279  获得目录项引用
2280  err等于Handle a dentry that is managed in some way.* - Flagged for transit management (autofs)* - Flagged as mountpoint* - Flagged as automount point* This may only be called in refwalk mode.* On success path->dentry is known positive.
2281  如果此条件成立可能性小(为编译器优化)(err < 0)则返回:err
2283  inode等于d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
2284  seq等于0
2286  path_to_nameidata( & path, nd)
2287  path.dentry.d_inode 等于inode
2288  seq等于seq
2289  返回:0
调用者
名称描述
path_lookupatReturns 0 and nd will be valid on success; Retuns error, otherwise.
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.