pub trait Decorator<Meta: VmMeta> {
// Required methods
fn arrive(
&mut self,
pte: &mut Pte<Meta>,
target_hint: Pos<Meta>,
) -> Pos<Meta>;
fn meet(
&mut self,
level: usize,
pte: Pte<Meta>,
target: Pos<Meta>,
) -> Option<NonNull<Pte<Meta>>>;
fn block(
&mut self,
level: usize,
pte: Pte<Meta>,
target_hint: Pos<Meta>,
) -> Update<Meta>;
}
Expand description
Meta
方案的页表访问机制。
Required Methods§
Sourcefn arrive(&mut self, pte: &mut Pte<Meta>, target_hint: Pos<Meta>) -> Pos<Meta>
fn arrive(&mut self, pte: &mut Pte<Meta>, target_hint: Pos<Meta>) -> Pos<Meta>
到达 target_hint
节点。