PhysMapper

Trait PhysMapper 

Source
pub trait PhysMapper {
    // Required method
    unsafe fn phys_to_mut<T>(&self, at: PhysicalAddress) -> &mut T;
}
Expand description

Mapper capable of temporarily viewing physical frames as typed tables.

Required Methods§

Source

unsafe fn phys_to_mut<T>(&self, at: PhysicalAddress) -> &mut T

Map a 4 KiB physical frame and get a mutable reference to type T.

§Safety

The implementation must ensure that the returned reference aliases the mapped frame, and that writes reach memory.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§