Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
device_cgroup.h
Go to the documentation of this file.
1
#include <linux/fs.h>
2
3
#ifdef CONFIG_CGROUP_DEVICE
4
extern
int
__devcgroup_inode_permission
(
struct
inode
*
inode
,
int
mask
);
5
extern
int
devcgroup_inode_mknod
(
int
mode
,
dev_t
dev
);
6
static
inline
int
devcgroup_inode_permission(
struct
inode
*
inode
,
int
mask
)
7
{
8
if
(
likely
(!inode->
i_rdev
))
9
return
0;
10
if
(!
S_ISBLK
(inode->
i_mode
) && !
S_ISCHR
(inode->
i_mode
))
11
return
0;
12
return
__devcgroup_inode_permission
(inode, mask);
13
}
14
#else
15
static
inline
int
devcgroup_inode_permission(
struct
inode *inode,
int
mask)
16
{
return
0; }
17
static
inline
int
devcgroup_inode_mknod
(
int
mode
,
dev_t
dev
)
18
{
return
0; }
19
#endif
Generated on Thu Jan 10 2013 14:51:18 for Linux Kernel by
1.8.2