#[repr(C)]pub struct MapConfig {
pub vaddr: VirtAddr,
pub paddr: PhysAddr,
pub size: usize,
pub pte: PteConfig,
pub allow_huge: bool,
pub flush: bool,
}Expand description
页表映射配置
Fields§
§vaddr: VirtAddr§paddr: PhysAddr§size: usize§pte: PteConfigPage Table Entry 配置模板
所有页表项将使用此配置创建(除了物理地址位)
allow_huge: bool§flush: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for MapConfig
impl RefUnwindSafe for MapConfig
impl Send for MapConfig
impl Sync for MapConfig
impl Unpin for MapConfig
impl UnwindSafe for MapConfig
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