pub struct SharedMemory {
frames: Vec<FrameTracker>,
len: usize,
}Expand description
共享内存:持有一组物理页(FrameTracker)
Fields§
§frames: Vec<FrameTracker>§len: usizeImplementations§
pub fn is_empty(&self) -> bool
Sourcepub fn map_to_user(self) -> Result<usize, PagingError>
pub fn map_to_user(self) -> Result<usize, PagingError>
将共享段映射到当前进程用户空间 返回
- Ok(usize) 成功;Err(PagingError) 失败