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:Returns 0 and nd will be valid on success; Retuns error, otherwise.

Proto:static int path_lookupat(struct nameidata *nd, unsigned flags, struct path *path)

Type:int

Parameter:

TypeParameterName
struct nameidata *nd
unsignedflags
struct path *path
2295  s = must be paired with terminate_walk()
2298  If Value for the false possibility is greater at compile time(flags & llow mounts in the starting point ) && Not IS_ERR(s) Then
2299  err = handle_lookup_down(nd)
2300  If Value for the false possibility is greater at compile time(err < 0) Then s = ERR_PTR(err)
2304  When Not (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 cycle
2306  s = trailing_symlink(nd)
2308  If Not err Then err = 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  If Not err && flags & quire a directory Then If Not d_can_lookup(dentry) Then
2313  err = -ENOTDIR
2314  If Not err Then
2315  path = path
2316  mnt = NULL
2317  dentry = NULL
2319  terminate_walk(nd)
2320  Return err
Caller
NameDescribe
filename_lookup
do_tmpfile
do_o_path