Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_mkdirat

Proto:long do_mkdirat(int dfd, const char __user *pathname, umode_t mode)

Type:long

Parameter:

TypeParameterName
intdfd
const char __user *pathname
umode_tmode
3770  lookup_flags = quire a directory
3772  retry :
3773  dentry = user_path_create(dfd, pathname, & path, lookup_flags)
3774  If IS_ERR(dentry) Then Return PTR_ERR(dentry)
3777  If Not IS_POSIXACL( Where the name belongs to - NULL is * negative ) Then mode &= ~current_umask()
3779  error = security_path_mkdir( & path, dentry, mode)
3780  If Not error Then error = vfs_mkdir( Where the name belongs to - NULL is * negative , dentry, mode)
3782  done_path_create( & path, dentry)
3783  If ry_estale - determine whether the caller should retry an operation*@error: the error that would currently be returned*@flags: flags being used for next lookup attempt* Check to see if the error code was -ESTALE, and then determine whether Then
3784  lookup_flags |= ll ->d_revalidate() to trust no cache
3785  Go to retry
3787  Return error
Caller
NameDescribe
SYSCALL_DEFINE3
SYSCALL_DEFINE2
ksys_mkdir