Home
last modified time | relevance | path

Searched refs:pg (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/kernel/src/mm/
Dmmap.c367 struct Page *pg; in mm_map_vma() local
373 pg = __create_mmio_page_struct(paddr); in mm_map_vma()
375 pg = vma->anon_vma->page; in mm_map_vma()
378 pg = Phy_to_2M_Page(paddr); in mm_map_vma()
380 if (unlikely(pg->anon_vma == NULL)) // 若页面不存在anon_vma,则为页面创建anon_vma in mm_map_vma()
382 spin_lock(&pg->op_lock); in mm_map_vma()
383 if (unlikely(pg->anon_vma == NULL)) in mm_map_vma()
384 __anon_vma_create_alloc(pg, false); in mm_map_vma()
385 spin_unlock(&pg->op_lock); in mm_map_vma()
389 __anon_vma_add(pg->anon_vma, vma); in mm_map_vma()