Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\device_cgroup.h Create Date:2022-07-28 20:04:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:devcgroup_inode_mknod

Proto:static inline int devcgroup_inode_mknod(int mode, dev_t dev)

Type:int

Parameter:

TypeParameterName
intmode
dev_tdev
51  If Not S_ISBLK(mode) && Not S_ISCHR(mode) Then Return 0
54  If S_ISBLK(mode) Then type = DEVCG_DEV_BLOCK
56  Else type = DEVCG_DEV_CHAR
59  Return devcgroup_check_permission(type, MAJOR(dev), MINOR(dev), DEVCG_ACC_MKNOD)
Caller
NameDescribe
vfs_mknod