Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs36 let (phy_addr, allocated_frame_count) = LockedFrameAllocator in alloc_in_buddy()
40 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr).ok_or(AllocError)? }; in alloc_in_buddy()
58 let phy_addr = MMArch::virt_2_phys(VirtAddr::new(ptr as usize)).unwrap(); in free_in_buddy() localVariable
59 LockedFrameAllocator.free(phy_addr, page_frame_count); in free_in_buddy()
/DragonOS/kernel/src/perf/
H A Dbpf.rs234 let (phy_addr, page_count) = in do_mmap()
238 let mut cur_phys = PhysPageFrame::new(phy_addr); in do_mmap()
246 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr) }.ok_or(SystemError::EFAULT)?; in do_mmap()
248 let mmap_page = RingPage::new_init(virt_addr.data(), len, phy_addr); in do_mmap()
265 let phy_addr = data.mmap_page.phys_addr; in drop() localVariable
268 let mut cur_phys = PhysPageFrame::new(phy_addr); in drop()