函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_mknod

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

返回类型:int

参数:

类型参数名称
struct inode *dir
struct dentry *dentry
umode_tmode
dev_tdev
3641  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
3643  如果error则返回:error
3646  如果S_ISCHR(mode)或S_ISBLK(mode)的值且非操作权限检查则返回:负EPERM
3649  如果非mknod则返回:负EPERM
3652  error等于devcgroup_inode_mknod(mode, dev)
3653  如果error则返回:error
3656  error等于security_inode_mknod(dir, dentry, mode, dev)
3657  如果error则返回:error
3660  error等于mknod(dir, dentry, mode, dev)
3661  如果非errorsnotify_create - 'name' was linked in
3663  返回:error
调用者
名称描述
do_mknodat