Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/mm/allocator/
Dkernel_allocator.rs33 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr).ok_or(AllocError)? }; in alloc_in_buddy() localVariable
34 if unlikely(virt_addr.is_null()) { in alloc_in_buddy()
40 virt_addr.data() as *mut u8, in alloc_in_buddy()
Dbuddy.rs255 let virt_addr = unsafe { A::phys_2_virt(curr_page) }; in write_page() localVariable
256 let virt_addr = virt_addr.unwrap(); in write_page() localVariable
257 unsafe { A::write(virt_addr, page_list) }; in write_page()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs436 let virt_addr = VirtAddr::new(buf_vaddr); in handle() localVariable
438 let res = if from_user && verify_area(virt_addr, len as usize).is_err() { in handle()
455 let virt_addr = VirtAddr::new(buf_vaddr); in handle() localVariable
457 let res = if from_user && verify_area(virt_addr, len as usize).is_err() { in handle()
516 let virt_addr = VirtAddr::new(path_ptr as usize); in handle() localVariable
519 || (from_user && verify_area(virt_addr, PAGE_2M_SIZE as usize).is_err()) in handle()
546 let virt_addr = VirtAddr::new(buf_vaddr); in handle() localVariable
548 let res = if from_user && verify_area(virt_addr, len as usize).is_err() { in handle()
773 let virt_addr = VirtAddr::new(addr as usize); in handle() localVariable
775 if verify_area(virt_addr, addrlen as usize).is_err() { in handle()
[all …]
/DragonOS-0.1.8/kernel/src/mm/
Dmm.h8 extern void rs_pseudo_map_phys(uint64_t virt_addr, uint64_t phys_addr, uint64_t size);
9 extern void rs_map_phys(uint64_t virt_addr, uint64_t phys_addr, uint64_t size, uint64_t flags);
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs81 let virt_addr = AHCI_MAPPING_BASE as usize + unsafe { (*gen_devs[i]).BAR5 as usize } in ahci_rust_init() localVariable
87 hba_mem_list.push(unsafe { (virt_addr as *mut HbaMem).as_mut().unwrap() }); in ahci_rust_init()