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_mknod

Proto:int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)

Type:int

Parameter:

TypeParameterName
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  If error Then Return error
3646  If (S_ISCHR(mode) || S_ISBLK(mode)) && Not Check operation authority Then Return -EPERM
3649  If Not mknod Then Return -EPERM
3652  error = devcgroup_inode_mknod(mode, dev)
3653  If error Then Return error
3656  error = security_inode_mknod(dir, dentry, mode, dev)
3657  If error Then Return error
3660  error = mknod(dir, dentry, mode, dev)
3661  If Not error Then snotify_create - 'name' was linked in
3663  Return error
Caller
NameDescribe
do_mknodat