函数逻辑报告

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

函数名称:Returns 0 and nd will be valid on success; Retuns error, otherwise.

函数原型:static int path_lookupat(struct nameidata *nd, unsigned flags, struct path *path)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
unsignedflags
struct path *path
2295  s等于must be paired with terminate_walk()
2298  如果此条件成立可能性小(为编译器优化)(flags & llow mounts in the starting point )且非是错误
2299  err等于handle_lookup_down(nd)
2300  如果此条件成立可能性小(为编译器优化)(err < 0)则s等于错误号
2304  当非err等于Name 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.err等于lookup_last(nd)大于0循环
2306  s等于trailing_symlink(nd)
2308  如果非errerr等于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
2311  如果非errflags按位与quire a directory 则如果非d_can_lookup(dentry)则
2313  err等于负ENOTDIR
2314  如果非err
2315  path等于path
2316  mnt = NULL
2317  dentry = NULL
2319  terminate_walk(nd)
2320  返回:err
调用者
名称描述
filename_lookup
do_tmpfile
do_o_path