函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:35:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vfs_mkdir

函数原型:int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)

返回类型:int

参数:

类型参数名称
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  如果error则返回:error
3747  如果非mkdir则返回:负EPERM
3750  mode与等于S_IRWXUGO按位或S_ISVTX
3751  error等于security_inode_mkdir(dir, dentry, mode)
3752  如果error则返回:error
3755  如果max_linksi_nlink大于等于max_links则返回:负EMLINK
3758  error等于mkdir(dir, dentry, mode)
3759  如果非errorsnotify_mkdir - directory 'name' was created
3761  返回:error
调用者
名称描述
do_mkdirat