softleaf_from_pte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… softleaf_from_pte(9) β€” like, the leaf-entry glow-up of a PTE ✨

okay so bestie, welcome to the Kernel API Manual (section 9, we're in kernel-land now 🧚). This is the page for softleaf_from_pte, and it's genuinely such a small little function but it does exactly one job and it does it iconically. Let's get into it 🫢


🌸 NAME 🌸

softleaf_from_pte β€” obtain a leaf entry from a PTE entry. That's it. That's the whole personality. πŸ’–


✨ SYNOPSIS ✨

softleaf_t softleaf_from_pte (pte_t pte );

Not me writing out the exact signature with the exact spacing because we do not freestyle the synopsis, periodt. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • pte β€” a PTE entry. yes, that's the whole description, it's giving "minimalist main character energy" but it's also accurate so we move. 🌈

πŸ’œ DESCRIPTION πŸ’œ

okay here's the vibe check on what this function actually does, and it's lowkey the plot twist of the page:

if pte is present (and therefore not a leaf entry β€” read that twice, bestie, because it's the whole point 😭) the function returns an empty leaf entry. Otherwise, it returns a leaf entry.

yeah. the branch is flipped from what your brain expects, and honestly? we respect it. it ate. πŸ”₯


⭐ RETURN ⭐

a leaf entry. that's the return value. short and slay. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

okay this is the part where the manpage absolutely unloads the whole friend group on you β€” 34 references, no cap, and we are listing every single one because they're all part of the lore. the kernel file to know is ./include/linux/leafops.h πŸ’–

like I said. the whole group chat. go say hi to all of them. πŸ‘‹


lowkey reminder bestie: the description says present β†’ empty leaf entry, otherwise a leaf entry. don't invert it in your head and then blame the manpage, iykyk πŸ™ˆ

and that's the page!! this one lives in ./include/linux and it's dated October 2026, so when you see softleaf_from_pte(9) with that October 2026 timestamp just know it's the same iconic little function we just talked about πŸ’…βœ¨ bye bestie, go read leafops.h πŸŽ€

πŸ“¦ where this page comes from