kmalloc.c File Reference

Go to the source code of this file.

Defines

#define DEBUG_MALLOC   0
#define CACHE(x)   { .cs_size = (x) },
#define CACHE(x)   "size-" #x,

Functions

int remap_pfn_range (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)
 EXPORT_SYMBOL (remap_pfn_range)
static struct kmem_cachefind_cache (size_t size)
 Find kmalloc() cache for size.
void kfree (const void *objp)
 Free previously allocated memory : pointer returned by kmalloc.
void * __kmalloc (size_t size, gfp_t flags)
 Allocate memory : how many bytes of memory are required.
size_t ksize (const void *p)
void * dma_alloc_coherent (struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag)
void dma_free_coherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)
void l4dde26_kmalloc_init (void)
 dde_linux kmalloc initialization

Variables

int forbid_dac
struct page * mem_map = NULL
static bootmem_data_t contig_bootmem_data
struct pglist_data contig_page_data = { .bdata = &contig_bootmem_data }
static struct cache_sizes malloc_sizes []
static const char * malloc_names []


Define Documentation

#define CACHE (  )     "size-" #x,

#define CACHE (  )     { .cs_size = (x) },

#define DEBUG_MALLOC   0

Definition at line 50 of file kmalloc.c.


Function Documentation

void* __kmalloc ( size_t  size,
gfp_t  flags 
)

Allocate memory : how many bytes of memory are required.

: the type of memory to allocate.

kmalloc is the normal method of allocating memory in the kernel.

Definition at line 127 of file kmalloc.c.

void* dma_alloc_coherent ( struct device *  dev,
size_t  size,
dma_addr_t *  dma_handle,
gfp_t  flag 
)

Definition at line 164 of file kmalloc.c.

void dma_free_coherent ( struct device *  dev,
size_t  size,
void *  vaddr,
dma_addr_t  dma_handle 
)

Definition at line 177 of file kmalloc.c.

EXPORT_SYMBOL ( remap_pfn_range   ) 

static struct kmem_cache* find_cache ( size_t  size  )  [static, read]

Find kmalloc() cache for size.

Definition at line 81 of file kmalloc.c.

void kfree ( const void *  objp  ) 

Free previously allocated memory : pointer returned by kmalloc.

If is NULL, no operation is performed.

Don't free memory not originally allocated by kmalloc() or you will run into trouble.

Definition at line 100 of file kmalloc.c.

size_t ksize ( const void *  p  ) 

Definition at line 155 of file kmalloc.c.

void l4dde26_kmalloc_init ( void   ) 

dde_linux kmalloc initialization

Definition at line 191 of file kmalloc.c.

int remap_pfn_range ( struct vm_area_struct *  vma,
unsigned long  addr,
unsigned long  pfn,
unsigned long  size,
pgprot_t  prot 
)

Definition at line 39 of file kmalloc.c.


Variable Documentation

bootmem_data_t contig_bootmem_data [static]

Definition at line 36 of file kmalloc.c.

struct pglist_data contig_page_data = { .bdata = &contig_bootmem_data }

Definition at line 37 of file kmalloc.c.

Definition at line 30 of file kmalloc.c.

const char* malloc_names[] [static]

Initial value:

 {
#define CACHE(x) 

        NULL

}

Definition at line 70 of file kmalloc.c.

struct cache_sizes malloc_sizes[] [static]

Initial value:

 {
#define CACHE(x) 



}

Definition at line 59 of file kmalloc.c.

struct page* mem_map = NULL

Definition at line 35 of file kmalloc.c.


Generated on Wed Apr 11 06:39:15 2012 for DDE - The L4 Device Driver Environment by  doxygen 1.5.6