MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_fault_disable_pagefaults

Function vm_fault_disable_pagefaults

freebsd/vm/vm_fault.c:2088–2093  ·  view source on GitHub ↗

* Block entry into the machine-independent layer's page fault handler by * the calling thread. Subsequent calls to vm_fault() by that thread will * return KERN_PROTECTION_FAILURE. Enable machine-dependent handling of * spurious page faults. */

Source from the content-addressed store, hash-verified

2086 * spurious page faults.
2087 */
2088int
2089vm_fault_disable_pagefaults(void)
2090{
2091
2092 return (curthread_pflags_set(TDP_NOFAULTING | TDP_RESETSPUR));
2093}
2094
2095void
2096vm_fault_enable_pagefaults(int save)

Callers 4

efi_arch_enterFunction · 0.85
vn_io_fault_doioFunction · 0.85
copyin_nofaultFunction · 0.85
copyout_nofaultFunction · 0.85

Calls 1

curthread_pflags_setFunction · 0.85

Tested by

no test coverage detected