Home
last modified time | relevance | path

Searched refs:VmFaultReason (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/src/mm/
H A Dfault.rs16 VirtAddr, VmFaultReason, VmFlags,
125 pub unsafe fn handle_mm_fault(mut pfm: PageFaultMessage) -> VmFaultReason { in handle_mm_fault() argument
138 return VmFaultReason::VM_FAULT_SIGSEGV; in handle_mm_fault()
150 VmFaultReason::VM_FAULT_COMPLETED in handle_mm_fault()
161 pub unsafe fn handle_normal_fault(pfm: &mut PageFaultMessage) -> VmFaultReason { in handle_normal_fault() argument
180 return VmFaultReason::VM_FAULT_OOM; in handle_normal_fault()
196 pub unsafe fn handle_pte_fault(pfm: &mut PageFaultMessage) -> VmFaultReason { in handle_pte_fault() argument
200 let mut ret = VmFaultReason::VM_FAULT_COMPLETED; in handle_pte_fault()
239 pub unsafe fn do_anonymous_page(pfm: &mut PageFaultMessage) -> VmFaultReason { in do_anonymous_page() argument
259 VmFaultReason::VM_FAULT_COMPLETED in do_anonymous_page()
[all …]
H A Dmod.rs81 pub struct VmFaultReason:u32 {
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dfault.rs22 VirtAddr, VmFaultReason, VmFlags,
296 if fault.contains(VmFaultReason::VM_FAULT_COMPLETED) { in do_user_addr_fault()
300 if unlikely(fault.contains(VmFaultReason::VM_FAULT_RETRY)) { in do_user_addr_fault()
307 let vm_fault_error = VmFaultReason::VM_FAULT_OOM in do_user_addr_fault()
308 | VmFaultReason::VM_FAULT_SIGBUS in do_user_addr_fault()
309 | VmFaultReason::VM_FAULT_SIGSEGV in do_user_addr_fault()
310 | VmFaultReason::VM_FAULT_HWPOISON in do_user_addr_fault()
311 | VmFaultReason::VM_FAULT_HWPOISON_LARGE in do_user_addr_fault()
312 | VmFaultReason::VM_FAULT_FALLBACK; in do_user_addr_fault()
/DragonOS/kernel/src/perf/
H A Dmod.rs16 use crate::mm::VmFaultReason;
230 unsafe fn fault(&self, pfm: &mut PageFaultMessage) -> VmFaultReason { in fault() argument
239 ) -> VmFaultReason { in map_pages() argument
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs23 mm::{fault::PageFaultMessage, VmFaultReason},
860 unsafe fn fault(&self, _pfm: &mut PageFaultMessage) -> VmFaultReason { in fault() argument
872 ) -> VmFaultReason { in map_pages() argument
H A Dmount.rs23 mm::{fault::PageFaultMessage, VmFaultReason},
566 unsafe fn fault(&self, pfm: &mut PageFaultMessage) -> VmFaultReason { in fault() argument
575 ) -> VmFaultReason { in map_pages() argument
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs22 use crate::mm::VmFaultReason;
290 unsafe fn fault(&self, pfm: &mut PageFaultMessage) -> VmFaultReason { in fault() argument
299 ) -> VmFaultReason { in map_pages() argument