mmap_action...l_pages_full(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 mmap_action...l_pages_full(9) 🌸

okay bestie so this is from the Kernel API Manual and the star of the show is mmap_action_map_kernel_pages_full β€” yes that's a long name, she's got main character energy and she earned it πŸ’…


✨ NAME ✨

mmap_action_map_kernel_pages_full β€” the little helper for the mmap_prepare hook that says "hey, the kernel pages chillin' in the @pages array? map those to userland, from @desc->start all the way to @desc->end" 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void mmap_action_map_kernel_pages_full (struct vm_area_desc *desc ,
struct page **pages );

πŸŽ€ ARGUMENTS πŸŽ€

  • desc β€” the VMA descriptor for the VMA that needs its kernel pags mapped. (yes "pags" β€” that's literally how it's spelled in the source, no cap, we love a typo moment πŸ™ˆ)
  • pages β€” an array of struct page pointers describing the memory to map ✨

πŸ’– DESCRIPTION πŸ’–

So like… the caller has got to make sure that pages has enough entries to cover the entire range described by desc. Not a vibe check you get to skip, bestie β€” the whole range, covered, or nothing. That's the entire requirement, periodt πŸ”₯

fr fr: the caller is responsible for the entry count here. The page doesn't do it for you.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/mm.h β€” and honestly the whole friend group showed up:


and that's the whole page, bestie 🌈 sourced from ./include/linux, dated October 2026, filed under mmap_action...l_pages_full(9) β€” go map some pages, ily, mwah πŸ’œπŸŽ€

πŸ“¦ where this page comes from