pub fn handle_page_fault(&self, vaddr: VirtAddr, flags: MMUFlags) -> ZxResult {
        let guard = self.inner.lock();
        let inner = guard.as_ref().unwrap();
        if !self.contains(vaddr) {
            return Err(ZxError::NOT_FOUND);
        }
        if let Some(child) = inner.children.iter().find(|ch| ch.contains(vaddr)) {
            return child.handle_page_fault(vaddr, flags);
        }
        if let Some(mapping) = inner.mappings.iter().find(|map| map.contains(vaddr)) {
            return mapping.handle_page_fault(vaddr, flags);
        }
        Err(ZxError::NOT_FOUND)
    }
/// Handle page fault happened on this VMAR.
///
/// The fault virtual address is `vaddr` and the reason is in `flags`.
Handle page fault happened on this VMAR.
The fault virtual address is `vaddr` and the reason is in `flags`.
Handle page fault happened on this VMAR . The fault virtual address is ` vaddr ` and the reason is in ` flags ` .
pub fn handle_page_fault(&self, vaddr: VirtAddr, flags: MMUFlags) -> ZxResult {
        let guard = self.inner.lock();
        let inner = guard.as_ref().unwrap();
        if !self.contains(vaddr) {
            return Err(ZxError::NOT_FOUND);
        }
        if let Some(child) = inner.children.iter().find(|ch| ch.contains(vaddr)) {
            return child.handle_page_fault(vaddr, flags);
        }
        if let Some(mapping) = inner.mappings.iter().find(|map| map.contains(vaddr)) {
            return mapping.handle_page_fault(vaddr, flags);
        }
        Err(ZxError::NOT_FOUND)
    }
pub fn handle_page_fault ( & self , vaddr : VirtAddr , flags : MMUFlags ) -> ZxResult { let guard = self . inner . lock ( ) ; let inner = guard . as_ref ( ) . unwrap ( ) ; if ! self . contains ( vaddr ) { return Err ( ZxError :: NOT_FOUND ) ; } if let Some ( child ) = inner . children . iter ( ) . find ( | ch | ch . contains ( vaddr ) ) { return child . handle_page_fault ( vaddr , flags ) ; } if let Some ( mapping ) = inner . mappings . iter ( ) . find ( | map | map . contains ( vaddr ) ) { return mapping . handle_page_fault ( vaddr , flags ) ; } Err ( ZxError :: NOT_FOUND ) }
Handle page fault happened on this VMAR.
Handle page fault happened on this VMAR .
&self
vaddr
VirtAddr
flags
MMUFlags
&self
vaddr
VirtAddr
flags
MMUFlags