- 论坛徽章:
- 0
|
在阅读Linux 2.6.12内核内存页表初始化函数kernel_physical_mapping_init中one_page_table_init函数代码如下:- void * __init __alloc_bootmem (unsigned long size, unsigned long align, unsigned long goal)
- {
- pg_data_t *pgdat = pgdat_list;
- void *ptr;
- for_each_pgdat(pgdat)
- if ((ptr = __alloc_bootmem_core(pgdat->bdata, size,
- align, goal)))
- return(ptr);
- /*
- * Whoops, we cannot satisfy the allocation request.
- */
- printk(KERN_ALERT "bootmem alloc of %lu bytes failed!\n", size);
- panic("Out of memory");
- return NULL;
- }
复制代码 这段代码我怎么读也读不懂!请大家指导我一下,不胜感激,谢谢!!! |
|