Skip to main content

permits

Function permits 

Source
pub fn permits(
    state: &CpuState,
    t: &Translation,
    intent: Intent,
    implicit_supervisor: bool,
) -> bool
Expand description

Would an access with this intent be allowed by t?

implicit_supervisor marks accesses the CPU makes on its own behalf (IDT reads, interrupt frames), which are always supervisor accesses. SMAP/SMEP are honoured. Protection keys are not modelled.