Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/allocator/
H A Dbuddy.rs97 let page_list: PageList<A> = PageList::new(0, PhysAddr::new(0)); in new() localVariable
98 Self::write_page(*f, page_list); in new()
196 let page_list = unsafe { A::read(A::phys_2_virt(addr).unwrap()) }; in read_page() localVariable
197 return page_list; in read_page()
200 pub fn write_page(curr_page: PhysAddr, page_list: PageList<A>) { in write_page()
204 unsafe { A::write(virt_addr, page_list) }; in write_page()
230 let mut page_list: PageList<A> = Self::read_page(page_list_addr); in pop_front() localVariable
233 while page_list.entry_num == 0 { in pop_front()
234 let next_page_list_addr = page_list.next_page; in pop_front()
251 page_list = Self::read_page(next_page_list_addr); in pop_front()
[all …]