mmap_action_...kernel_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mmap_action_map_kernel_pages πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this page is all about a helper for the mmap_prepare hook, and it's literally here to say β€œmap these kernel pages into userland, starting at this virtual address.” group-chat energy but make it memory management πŸ’…


🌸 NAME 🌸

mmap_action_map_kernel_pages β€” helper for the mmap_prepare hook to specify that @num kernel pages contained in the @pages array should be mapped to userland starting at virtual address @start. that's the assignment, no cap 🫢


✨ SYNOPSIS ✨

void mmap_action_map_kernel_pages (struct vm_area_desc *desc , unsigned long start , struct page **pages , unsigned long nr_pages );

πŸŽ€ ARGUMENTS πŸŽ€

  • desc β€” the VMA descriptor for the VMA requiring kernel pags to be mapped. yes, β€œpags” is the original spelling, and I'm delivering it with love 😭
  • start β€” the virtual address from which to map them. the starting point, periodt πŸ“
  • pages β€” an array of struct page pointers describing the memory to map. page-pointer city 🫢
  • nr_pages β€” the number of entries in the pages aray. again, β€œaray” is the original spelling, not me πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./include/linux/mm.h

the whole function friend group, in order, zero skips:


okay that's the whole page, bestie 🫢 source/version: ./include/linux, date: October 2026, page name: mmap_action_...kernel_pages(9). go map those kernel pages and slay πŸ’…βœ¨

πŸ“¦ where this page comes from