[−][src]Function sunrise_libuser::syscalls::query_physical_address
pub fn query_physical_address(
virtual_address: usize
) -> Result<(usize, usize, usize), KernelError>
Gets the physical region a given virtual address maps.
This syscall is mostly used for DMAs, where the physical address of a buffer needs to be known by userspace.
Return
- The start address of the physical region.
- The start address of the virtual region.
- The length of the region.
Error
- InvalidAddress: This address does not map physical memory.