Searched refs:alloc_pages (Results 1 – 8 of 8) sorted by relevance
/DragonOS-0.1.3/docs/kernel/core_api/ |
D | allocate-memory.md | 3 DragonOS提供了一些用于内存分配的api。您可以使用*kmalloc*来分配小的内存块,也可以使用*alloc_pages*分配连续的2MB大小的内存页面。 13 对于需要大量连续内存的分配,可以使用`alloc_pages()`向页面分配器申请连续的内存页。 15 当内存空间不再被使用时,那么必须释放他们。若您使用的是`kmalloc()`分配的内存,那么您需要使用`kfree()`释放它。若是使用`alloc_pages()`分配的内存,则需要使用`free…
|
D | mm-api.md | 64 ### `struct Page *alloc_pages(unsigned int zone_select, int num, ul flags)`
|
/DragonOS-0.1.3/kernel/src/mm/ |
D | slab.c | 71 slab_pool->cache_pool_entry->page = alloc_pages(ZONE_NORMAL, 1, PAGE_KERNEL); in slab_create() 183 tmp_slab_obj->page = alloc_pages(ZONE_NORMAL, 1, PAGE_KERNEL); in slab_malloc() 440 struct Page *page = alloc_pages(ZONE_NORMAL, 1, 0); in kmalloc_create_slab_obj()
|
D | mm.h | 246 struct Page *alloc_pages(unsigned int zone_select, int num, ul flags);
|
D | mm.c | 290 struct Page *alloc_pages(unsigned int zone_select, int num, ul flags) in alloc_pages() function 642 … mm_map(current_pcb->mm, i, PAGE_2M_SIZE, alloc_pages(ZONE_NORMAL, 1, PAGE_PGT_MAPPED)->addr_phys); in mm_do_brk()
|
/DragonOS-0.1.3/kernel/src/libs/libUI/ |
D | screen_manager.c | 47 …struct Page *p = alloc_pages(ZONE_NORMAL, PAGE_2M_ALIGN(video_frame_buffer_info.size) / PAGE_2M_SI… in __create_buffer()
|
/DragonOS-0.1.3/kernel/src/process/ |
D | process.c | 275 uint64_t pa = alloc_pages(ZONE_NORMAL, 1, PAGE_PGT_MAPPED)->addr_phys; in process_load_elf_file() 336 uint64_t pa = alloc_pages(ZONE_NORMAL, 1, PAGE_PGT_MAPPED)->addr_phys; in process_load_elf_file()
|
D | fork.c | 262 uint64_t pa = alloc_pages(ZONE_NORMAL, 1, PAGE_PGT_MAPPED)->addr_phys; in process_copy_mm()
|