|
#define | BOOTMEM_DEFAULT 0 |
|
#define | BOOTMEM_EXCLUSIVE (1<<0) |
|
#define | BOOTMEM_LOW_LIMIT __pa(MAX_DMA_ADDRESS) |
|
#define | alloc_bootmem(x) __alloc_bootmem(x, SMP_CACHE_BYTES, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_align(x, align) __alloc_bootmem(x, align, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_nopanic(x) __alloc_bootmem_nopanic(x, SMP_CACHE_BYTES, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_pages(x) __alloc_bootmem(x, PAGE_SIZE, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_pages_nopanic(x) __alloc_bootmem_nopanic(x, PAGE_SIZE, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_node(pgdat, x) __alloc_bootmem_node(pgdat, x, SMP_CACHE_BYTES, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_node_nopanic(pgdat, x) __alloc_bootmem_node_nopanic(pgdat, x, SMP_CACHE_BYTES, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_pages_node(pgdat, x) __alloc_bootmem_node(pgdat, x, PAGE_SIZE, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_pages_node_nopanic(pgdat, x) __alloc_bootmem_node_nopanic(pgdat, x, PAGE_SIZE, BOOTMEM_LOW_LIMIT) |
|
#define | alloc_bootmem_low(x) __alloc_bootmem_low(x, SMP_CACHE_BYTES, 0) |
|
#define | alloc_bootmem_low_pages(x) __alloc_bootmem_low(x, PAGE_SIZE, 0) |
|
#define | alloc_bootmem_low_pages_node(pgdat, x) __alloc_bootmem_low_node(pgdat, x, PAGE_SIZE, 0) |
|
#define | HASH_EARLY 0x00000001 /* Allocating during early boot? */ |
|
#define | HASH_SMALL |
|
#define | HASHDIST_DEFAULT 0 |
|
|
unsigned long | bootmem_bootmap_pages (unsigned long) |
|
unsigned long | init_bootmem_node (pg_data_t *pgdat, unsigned long freepfn, unsigned long startpfn, unsigned long endpfn) |
|
unsigned long | init_bootmem (unsigned long addr, unsigned long memend) |
|
unsigned long | free_low_memory_core_early (int nodeid) |
|
unsigned long | free_all_bootmem_node (pg_data_t *pgdat) |
|
unsigned long | free_all_bootmem (void) |
|
void | free_bootmem_node (pg_data_t *pgdat, unsigned long addr, unsigned long size) |
|
void | free_bootmem (unsigned long addr, unsigned long size) |
|
void | free_bootmem_late (unsigned long addr, unsigned long size) |
|
int | reserve_bootmem (unsigned long addr, unsigned long size, int flags) |
|
int | reserve_bootmem_node (pg_data_t *pgdat, unsigned long physaddr, unsigned long size, int flags) |
|
void * | __alloc_bootmem (unsigned long size, unsigned long align, unsigned long goal) |
|
void * | __alloc_bootmem_nopanic (unsigned long size, unsigned long align, unsigned long goal) |
|
void * | __alloc_bootmem_node (pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal) |
|
void * | __alloc_bootmem_node_high (pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal) |
|
void * | __alloc_bootmem_node_nopanic (pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal) |
|
void * | ___alloc_bootmem_node_nopanic (pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal, unsigned long limit) |
|
void * | __alloc_bootmem_low (unsigned long size, unsigned long align, unsigned long goal) |
|
void * | __alloc_bootmem_low_node (pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal) |
|
int | reserve_bootmem_generic (unsigned long addr, unsigned long size, int flags) |
|
void * | alloc_large_system_hash (const char *tablename, unsigned long bucketsize, unsigned long numentries, int scale, int flags, unsigned int *_hash_shift, unsigned int *_hash_mask, unsigned long low_limit, unsigned long high_limit) |
|
void* __alloc_bootmem |
( |
unsigned long |
size, |
|
|
unsigned long |
align, |
|
|
unsigned long |
goal |
|
) |
| |
__alloc_bootmem - allocate boot memory : size of the request in bytes : alignment of the region : preferred starting address of the region
The goal is dropped if it can not be satisfied and the allocation will fall back to memory below .
Allocation may happen on any node in the system.
The function panics if the request can not be satisfied.
Definition at line 693 of file bootmem.c.
void* __alloc_bootmem_low |
( |
unsigned long |
size, |
|
|
unsigned long |
align, |
|
|
unsigned long |
goal |
|
) |
| |
__alloc_bootmem_low - allocate low boot memory : size of the request in bytes : alignment of the region : preferred starting address of the region
The goal is dropped if it can not be satisfied and the allocation will fall back to memory below .
Allocation may happen on any node in the system.
The function panics if the request can not be satisfied.
Definition at line 827 of file bootmem.c.
__alloc_bootmem_low_node - allocate low boot memory from a specific node : node to allocate from : size of the request in bytes : alignment of the region : preferred starting address of the region
The goal is dropped if it can not be satisfied and the allocation will fall back to memory below .
Allocation may fall back to any node in the system if the specified node can not hold the requested memory.
The function panics if the request can not be satisfied.
Definition at line 848 of file bootmem.c.
__alloc_bootmem_node - allocate boot memory from a specific node : node to allocate from : size of the request in bytes : alignment of the region : preferred starting address of the region
The goal is dropped if it can not be satisfied and the allocation will fall back to memory below .
Allocation may fall back to any node in the system if the specified node can not hold the requested memory.
The function panics if the request can not be satisfied.
Definition at line 772 of file bootmem.c.