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_parentat

Proto:static struct filename *filename_parentat(int dfd, struct filename *name, unsigned int flags, struct path *parent, struct qstr *last, int *type)

Type:struct filename

Parameter:

TypeParameterName
intdfd
struct filename *name
unsigned intflags
struct path *parent
struct qstr *last
int *type
2372  If IS_ERR(name) Then Return name
2374  set_nameidata( & nd, dfd, name)
2375  retval = Returns 0 and nd will be valid on success; Retuns error, otherwise.
2376  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.
2378  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.
2380  If Value is more likely to compile time(!retval) Then
2381  last = last
2382  type = last_type
2383  audit_inode(name, dentry, dentry represents the parent )
2384  Else
2385  putname(name)
2386  name = ERR_PTR(retval)
2388  restore_nameidata()
2389  Return name
Caller
NameDescribe
kern_path_lockeddoes lookup, returns the object with parent locked
filename_create
do_rmdir
do_unlinkatMake sure that the actual truncation of the file will occur outside its* directory's i_mutex. Truncate can take a long time if there is a lot of* writeout happening, and we don't want to prevent access to the directory* while waiting on the I/O.
do_renameat2