softleaf_to_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is softleaf_to_page(9) from the Kernel API Manual, and it obtains the struct page for the PFN encoded within a leaf entry. that's literally the whole gig. πŸ’…

✨ SYNOPSIS ✨

struct page * softleaf_to_page (softleaf_t entry );

πŸŽ€ ARGUMENTS πŸŽ€

  • entry β€” leaf entry. important vibe check: softleaf_has_pfn(entry) must return true. no exceptions, fr fr. 🫢

πŸ¦‹ RETURN πŸ¦‹

you get back a pointer (struct page *) to the struct page associated with the leaf entry's PFN. that's it, iconic behavior only. πŸ’–

πŸ’– SEE ALSO πŸ’–

go check out the Kernel file ./include/linux/leafops.h plus the whole squad:


that's the whole page, bestie πŸ’… source/version: ./include/linux; date: October 2026. mwah 🫢

πŸ“¦ where this page comes from