1 #include <linux/module.h>
4 #ifdef CONFIG_CGROUP_DEVICE
5 extern int __devcgroup_inode_permission(struct inode
*inode
, int mask
);
6 extern int devcgroup_inode_mknod(int mode
, dev_t dev
);
7 static inline int devcgroup_inode_permission(struct inode
*inode
, int mask
)
9 if (likely(!inode
->i_rdev
))
11 if (!S_ISBLK(inode
->i_mode
) && !S_ISCHR(inode
->i_mode
))
13 return __devcgroup_inode_permission(inode
, mask
);
16 static inline int devcgroup_inode_permission(struct inode
*inode
, int mask
)
18 static inline int devcgroup_inode_mknod(int mode
, dev_t dev
)