Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
slab_def.h File Reference
#include <linux/init.h>
#include <asm/page.h>
#include <asm/cache.h>
#include <linux/compiler.h>
#include <linux/kmalloc_sizes.h>

Go to the source code of this file.

Data Structures

struct  kmem_cache
 
struct  cache_sizes
 

Macros

#define CACHE(x)
 

Functions

voidkmem_cache_alloc (struct kmem_cache *, gfp_t)
 
void__kmalloc (size_t size, gfp_t flags)
 

Variables

struct cache_sizes malloc_sizes []
 

Macro Definition Documentation

#define CACHE (   x)
Value:
if (size <= x) \
goto found; \
else \
i++;

Function Documentation

void* __kmalloc ( size_t  size,
gfp_t  flags 
)

Definition at line 472 of file bootpz.c.

void* kmem_cache_alloc ( struct kmem_cache s,
gfp_t  gfpflags 
)

kmem_cache_alloc - Allocate an object : The cache to allocate from. : See kmalloc().

Allocate an object from this cache. The flags are only relevant if the cache has no available objects.

Definition at line 3780 of file slab.c.

Variable Documentation

struct cache_sizes malloc_sizes[]

Definition at line 546 of file slab.c.