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_cache * | find_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 |
( |
x |
|
) |
"size-" #x, |
| #define CACHE |
( |
x |
|
) |
{ .cs_size = (x) }, |
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 | |
|
) |
| | |
| void dma_free_coherent |
( |
struct device * |
dev, |
|
|
size_t |
size, |
|
|
void * |
vaddr, |
|
|
dma_addr_t |
dma_handle | |
|
) |
| | |
| 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 |
) |
|
| 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 | |
|
) |
| | |
Variable Documentation
Initial value:
{
#define CACHE(x)
NULL
}
Definition at line 70 of file kmalloc.c.
Initial value:
Definition at line 59 of file kmalloc.c.