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:vfs_mkdir

Proto:int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
umode_tmode
3741  error = Check whether we can create an object with dentry child in directory* dir.* 1. We can't do it if child already exists (open has special treatment for* this case, but since we are inlined it's OK)* 2
3742  max_links = s_max_links
3744  If error Then Return error
3747  If Not mkdir Then Return -EPERM
3750  mode &= S_IRWXUGO | S_ISVTX
3751  error = security_inode_mkdir(dir, dentry, mode)
3752  If error Then Return error
3755  If max_links && i_nlink >= max_links Then Return -EMLINK
3758  error = mkdir(dir, dentry, mode)
3759  If Not error Then snotify_mkdir - directory 'name' was created
3761  Return error
Caller
NameDescribe
do_mkdirat