[][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

  1. The start address of the physical region.
  2. The start address of the virtual region.
  3. The length of the region.

Error