kvm_pgtable_get_leaf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ kvm_pgtable_get_leaf(9) ✨

okay bestie, this page is from the Kernel API Manual, and it's literally about walking a page-table and grabbing the leaf entry plus its level. no cap, it's giving "tiny but important" energy πŸ«ΆπŸ’…

🌸 NAME 🌸

kvm_pgtable_get_leaf β€” walk a page-table and retrieve the leaf entry with its level. periodt. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

int kvm_pgtable_get_leaf (struct kvm_pgtable *pgt , u64 addr , kvm_pte_t *ptep , s8 *level );

πŸŽ€ ARGUMENTS πŸŽ€

  • pgt β€” the page-table structure, already initialised by kvm_pgtable_*_init or a similar initialiser. πŸ’–
  • addr β€” the input address for the start of the walk. πŸ“
  • ptep β€” pointer to storage for the retrieved PTE. πŸŽ€
  • level β€” pointer to storage for the level of the retrieved PTE. 🌟

πŸ”₯ DESCRIPTION πŸ”₯

The offset of addr within a page is ignored. literally, that part doesn't matter here, bestie. πŸ™ˆ

The walker will walk the page-table entries corresponding to the input address specified, retrieving the leaf corresponding to this address. Invalid entries are treated as leaf entries. yes, invalid entries count as leaf entries β€” that's the vibe check πŸ’€βœ¨

πŸ‘‘ RETURN πŸ‘‘

0 on success, negative error code on failure. that's it, that's the whole return situation 🫢

🌈 SEE ALSO 🌈

Kernel file ./arch/arm64/include/asm/kvm_pgtable.h is the main-character spot. then we've got the whole friend group:


okay that's the whole page, bestie πŸ’– this one comes from the ./arch/arm64/include/asm source/version and is dated October 2026, with the manual page being kvm_pgtable_get_leaf(9). mwah πŸ’…βœ¨

πŸ“¦ where this page comes from