函数逻辑报告

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

函数名称:filename_lookup

函数原型:int filename_lookup(int dfd, struct filename *name, unsigned flags, struct path *path, struct path *root)

返回类型:int

参数:

类型参数名称
intdfd
struct filename *name
unsignedflags
struct path *path
struct path *root
2328  如果是错误则返回:错误
2330  如果此条件成立可能性小(为编译器优化)(root)则
2331  root等于root
2332  flags或等于LOOKUP_ROOT
2334  set_nameidata( & nd, dfd, name)
2335  retval等于Returns 0 and nd will be valid on success; Retuns error, otherwise.
2336  如果此条件成立可能性小(为编译器优化)(retval == - ECHILD)则retval等于Returns 0 and nd will be valid on success; Retuns error, otherwise.
2338  如果此条件成立可能性小(为编译器优化)(retval == - ESTALE)则retval等于Returns 0 and nd will be valid on success; Retuns error, otherwise.
2341  如果此条件成立可能性大(为编译器优化)(!retval)则audit_inode(name, dentry, 0)
2343  restore_nameidata()
2344  putname(name)
2345  返回:retval
调用者
名称描述
kern_path
vfs_path_lookupvfs_path_lookup - lookup a file path relative to a dentry-vfsmount pair*@dentry: pointer to dentry of the base directory*@mnt: pointer to vfs mount of the base directory*@name: pointer to file name*@flags: lookup flags*@path: pointer to struct path to fill
user_path_at_empty
fs_lookup_params_lookup_param - Look up a path referred to by a parameter*@fc: The filesystem context to log errors through.*@param: The parameter.*@want_bdev: T if want a blockdev*@_path: The result of the lookup