Skip to main content

TaskMemoryAccessor

Trait TaskMemoryAccessor 

Source
pub trait TaskMemoryAccessor: MemoryAccessor {
    // Required methods
    fn maximum_valid_address(&self) -> Option<UserAddress>;
    fn ensure_buffers_mapped_in_user_vmar(
        &self,
        buffers: &[UserBuffer],
        access: MappingAccess,
    ) -> Result<(), Errno>;
}

Required Methods§

Source

fn maximum_valid_address(&self) -> Option<UserAddress>

Returns the maximum valid address for this memory accessor.

Source

fn ensure_buffers_mapped_in_user_vmar( &self, buffers: &[UserBuffer], access: MappingAccess, ) -> Result<(), Errno>

Ensures that any mappings in buffers are mapped in the user VMAR with the permissions needed for access.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§