[][src]Struct sunrise_libuser::syscalls::MemoryInfo

#[repr(C)]pub struct MemoryInfo {
    pub baseaddr: usize,
    pub size: usize,
    pub memtype: MemoryState,
    pub memattr: MemoryAttributes,
    pub perms: MemoryPermissions,
    pub ipc_ref_count: u32,
    pub device_ref_count: u32,
}

The structure returned by the query_memory syscall.

Fields

baseaddr: usize

The base address of this memory region.

This is not the same as the address passed in query_memory. It will always be lower or equal to it, and will always be page-aligned. It points to the beggining of the mapping that address falls into.

size: usize

The size of this memory region, from the base address.

memtype: MemoryState

The type of this mapping.

Used to figure out how this mapping was created.

memattr: MemoryAttributes

The attributes of this mapping.

perms: MemoryPermissions

The permissions of this mapping.

ipc_ref_count: u32

Counts how many IPC service requests have an IPC buffer in this mapping.

device_ref_count: u32

Unknown.

Trait Implementations

impl Debug for MemoryInfo[src]

impl Default for MemoryInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for MemoryInfo

impl Send for MemoryInfo

impl Sync for MemoryInfo

impl Unpin for MemoryInfo

impl UnwindSafe for MemoryInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.