mshv_region_range_fault(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay bestie, welcome to the mshv_region_range_fault(9) page from the Kernel API Manual πŸ’–. mshv_region_range_fault is literally the function that handles memory range faults for a given region. Periodt.

✨ SYNOPSIS ✨

Like, here's the signature, no cap:

       int mshv_region_range_fault (struct mshv_mem_region *region , u64
       page_offset , u64 page_count );

πŸŽ€ ARGUMENTS πŸŽ€

  • region β€” pointer to the memory region structure. Iconic.
  • page_offset β€” offset of the page within the region.
  • page_count β€” number of pages to handle.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea: this function resolves memory faults for a specified range of pages within a memory region. It uses HMM (Heterogeneous Memory Management) to fault in the required pages, and it updates the region's page array. Literally the main character energy of fault handling πŸ’….

🌈 RETURN 🌈

0 on success, negative error code on failure. Slay on success, sad vibes on failure 😭.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/hv/mshv_regions.c, plus these iconic pals: mshv_chunk_stride(9), mshv_region_process_chunk(9), mshv_region_process_range(9), and mshv_region_interval_invalidate(9) 🫢.


Cute sign-off: source/version ./drivers/hv, date October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from