Searched refs:virt_addr (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/mm/allocator/ |
H A D | kernel_allocator.rs | 40 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr).ok_or(AllocError)? }; in alloc_in_buddy() localVariable 41 if unlikely(virt_addr.is_null()) { in alloc_in_buddy() 47 virt_addr.data() as *mut u8, in alloc_in_buddy()
|
H A D | buddy.rs | 202 let virt_addr = unsafe { A::phys_2_virt(curr_page) }; in write_page() localVariable 203 let virt_addr = virt_addr.unwrap(); in write_page() localVariable 204 unsafe { A::write(virt_addr, page_list) }; in write_page()
|
/DragonOS/kernel/src/syscall/ |
H A D | mod.rs | 249 let virt_addr: VirtAddr = VirtAddr::new(buf_vaddr); in handle() localVariable 251 let res = if frame.is_from_user() && verify_area(virt_addr, len).is_err() { in handle() 488 let virt_addr = VirtAddr::new(addr as usize); in handle() localVariable 490 if verify_area(virt_addr, addrlen).is_err() { in handle() 500 let virt_addr = VirtAddr::new(addr as usize); in handle() localVariable 502 if verify_area(virt_addr, addrlen).is_err() { in handle() 517 let virt_addr = VirtAddr::new(addr as usize); in handle() localVariable 519 if verify_area(virt_buf, len).is_err() || verify_area(virt_addr, addrlen).is_err() { in handle() 536 let virt_addr = VirtAddr::new(addr as usize); in handle() localVariable 550 if verify_area(virt_addr, core::mem::size_of::<SockAddr>()).is_err() { in handle() [all …]
|
/DragonOS/kernel/src/perf/ |
H A D | bpf.rs | 248 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr) }.ok_or(SystemError::EFAULT)?; in do_mmap() localVariable 250 let mmap_page = RingPage::new_init(virt_addr.data(), len, phy_addr); in do_mmap()
|