kvm_pgtable_walk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

kvm_pgtable_walk β€” walk a page-table. That’s the whole name, bestie. And yes, this is the kvm_pgtable_walk(9) page from the Kernel API Manual, so you’re in the right group chat. 🫢 Page-table walker core, main character energy.

✨ SYNOPSIS ✨

int kvm_pgtable_walk (struct kvm_pgtable *pgt , u64 addr , u64 size ,
       struct kvm_pgtable_walker *walker );

πŸŽ€ ARGUMENTS πŸŽ€

  • pgt β€” Page-table structure initialised by kvm_pgtable_*_init.
  • addr β€” input address for the start of the walk.
  • size β€” size of the range to walk.
  • walker β€” walker callback description.

πŸ’… DESCRIPTION πŸ’…

First vibe check: the offset of addr within a page is ignored, and size is rounded-up to the next page boundary. No cap. ✨

The walker will walk the page-table entries corresponding to the input address range specified, visiting entries according to the walker flags. Invalid entries are treated as leaf entries. The visited page table entry is reloaded after invoking the walker callback, allowing the walker to descend into a newly installed table. That’s the whole slay. πŸ¦‹

Returning a negative error code from the walker callback function will terminate the walk immediately with the same error code. Immediate immediate. πŸ’€ No extra steps, no tiny side quest.

🌈 RETURN 🌈

0 on success, negative error code on failure. Periodt. βœ…

πŸ‘€ SEE ALSO πŸ‘€


okay that’s the page, bestie! source/version: ./arch/arm64/include/asm β€” date: October 2026. mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from