Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:filename_lookup

Proto:int filename_lookup(int dfd, struct filename *name, unsigned flags, struct path *path, struct path *root)

Type:int

Parameter:

TypeParameterName
intdfd
struct filename *name
unsignedflags
struct path *path
struct path *root
2328  If IS_ERR(name) Then Return PTR_ERR(name)
2330  If Value for the false possibility is greater at compile time(root) Then
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  If Value for the false possibility is greater at compile time(retval == - ECHILD) Then retval = Returns 0 and nd will be valid on success; Retuns error, otherwise.
2338  If Value for the false possibility is greater at compile time(retval == - ESTALE) Then retval = Returns 0 and nd will be valid on success; Retuns error, otherwise.
2341  If Value is more likely to compile time(!retval) Then audit_inode(name, dentry, 0)
2343  restore_nameidata()
2344  putname(name)
2345  Return retval
Caller
NameDescribe
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