函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:34:59
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_parentat(struct nameidata *nd, unsigned flags, struct path *parent)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
unsignedflags
struct path *parent
2352  s等于must be paired with terminate_walk()
2353  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.
2354  如果非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
2356  如果非err
2357  parent等于path
2358  mnt = NULL
2359  dentry = NULL
2361  terminate_walk(nd)
2362  返回:err
调用者
名称描述
filename_parentat