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
slob_def.h
Go to the documentation of this file.
1
#ifndef __LINUX_SLOB_DEF_H
2
#define __LINUX_SLOB_DEF_H
3
4
#include <
linux/numa.h
>
5
6
void
*
kmem_cache_alloc_node
(
struct
kmem_cache
*,
gfp_t
flags
,
int
node
);
7
8
static
__always_inline
void
*
kmem_cache_alloc
(
struct
kmem_cache
*cachep,
9
gfp_t
flags
)
10
{
11
return
kmem_cache_alloc_node
(cachep, flags,
NUMA_NO_NODE
);
12
}
13
14
void
*
__kmalloc_node
(
size_t
size
,
gfp_t
flags
,
int
node
);
15
16
static
__always_inline
void
*kmalloc_node(
size_t
size
,
gfp_t
flags
,
int
node
)
17
{
18
return
__kmalloc_node
(size, flags, node);
19
}
20
29
static
__always_inline
void
*
kmalloc
(
size_t
size
,
gfp_t
flags
)
30
{
31
return
__kmalloc_node
(size, flags,
NUMA_NO_NODE
);
32
}
33
34
static
__always_inline
void
*
__kmalloc
(
size_t
size
,
gfp_t
flags
)
35
{
36
return
kmalloc
(size, flags);
37
}
38
39
#endif
/* __LINUX_SLOB_DEF_H */
Generated on Thu Jan 10 2013 14:52:36 for Linux Kernel by
1.8.2