pub struct MappedFolio { /* private fields */ }
Expand description
A folio mapped to the current process’s address space.
Implementations§
Source§impl MappedFolio
impl MappedFolio
Sourcepub fn create(len: usize) -> Result<MappedFolio, FtlError>
pub fn create(len: usize) -> Result<MappedFolio, FtlError>
Allocates a folio at an arbitrary physical address, and maps it to the current process’s address space.
Sourcepub fn create_pinned(paddr: PAddr, len: usize) -> Result<MappedFolio, FtlError>
pub fn create_pinned(paddr: PAddr, len: usize) -> Result<MappedFolio, FtlError>
Allocates a folio at a specific physical address (paddr
), and maps it to the
current process’s address space.
Auto Trait Implementations§
impl Freeze for MappedFolio
impl RefUnwindSafe for MappedFolio
impl Send for MappedFolio
impl Sync for MappedFolio
impl Unpin for MappedFolio
impl UnwindSafe for MappedFolio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more