STRUCT MM_WALK(9)
πΈ NAME πΈ
okay bestie, welcome to the Kernel API Manual! Today's main character is struct mm_walk(9), and its whole vibe is walk_page_range data. That's the name, periodt.
β¨ SYNOPSIS β¨
struct mm_walk {
const struct mm_walk_ops *ops;
struct mm_struct *mm;
pgd_t *pgd;
struct vm_area_struct *vma;
enum page_walk_action action;
bool no_vma;
void *private;
};
π Members π
opsβ the operation to call during the walk. like, the callback situation πmmβ themm_structrepresenting the target process of the page table walk. it's giving "whose memory are we looking at" energy.pgdβ pointer to PGD; only valid withno_vma(otherwise set toNULL). no cap, that's the rule.vmaβ the vma currently walked (NULLif walking outside vmas). bestie is either in a vma or she's not πactionβ next action to perform (seeenum page_walk_action). main character energy for what happens next.no_vmaβ walk ignoring vmas (vmawill always beNULL). iconic "no vma, no problem" mode.privateβ private data for callbacks' usage. this is the lil stash for the callbacks π«Ά
π¦ Description π¦
the page keeps it mysterious, and honestly it ate:
(see the comment on walk_page_range for more details)
π SEE ALSO π
- Kernel file
./include/linux/pagewalk.h struct mm_walk_ops(9)struct folio_walk(9)
signed with love from ./include/linux, October 2026, struct mm_walk(9) β mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms