UVM_FAULT(9)

πŸ“¦ in nixpkgs unstable

πŸ¦‹ UVM_FAULT πŸ¦‹

ok so real talk bestie, this is uvm_fault(9) from the Kernel Developer's Manual β€” page fault handling, and yes it's exactly as iconic as it sounds πŸ’…


✨ NAME ✨

uvm_fault β€” page fault handling 🫢


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <uvm/uvm.h>

int
uvm_fault(vm_map_t orig_map, vaddr_t vaddr, vm_fault_t fault_type,
    vm_prot_t access_type);

πŸ’– DESCRIPTION πŸ’–

okay so uvm_fault() is the main entry point for faults β€” like, the literal main character of page faulting, no cap πŸ‘‘

It takes these besties as arguments:

  • orig_map β€” the map the fault originated in πŸ’«
  • vaddr β€” a vaddr offset into the map where the fault occurred πŸ“
  • fault_type β€” describes the type of fault that happened 🌈
  • access_type β€” describes the type of access that was requested πŸ”₯

And when it's done doing its thing? uvm_fault() returns a standard errno. periodt πŸ’…


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole vibe bestie, go forth and handle those faults πŸ’œ


this lil gem is from the Debian edition, dated December 5, 2019, and it lives at UVM_FAULT(9) β€” mwah, love that for us πŸ“βœ¨

πŸ“¦ where this page comes from