plist_last_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 plist_last_entry(9) β€” get the struct for the last entry 🌸

okay bestie, so this one's from the Kernel API Manual and it's literally one of the cutest tiny helpers ever β€” it hands you back the struct that the last entry of your plist lives inside. no cap, that's the whole vibe. πŸŽ€


✨ NAME ✨

plist_last_entry β€” get the struct for the last entry πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

plist_last_entry (head , type , member );

that's it. that's the whole call. iconic. ⭐

🌈 ARGUMENTS 🌈

  • head β€” the struct plist_head pointer 🫢 this is your starting point, the head of the party
  • type β€” the type of the struct this is embedded in β€” like, the actual big struct you care about, not just the little list_head hiding inside it
  • member β€” the name of the list_head within the struct πŸ‘‘ (iykyk β€” it's the field name, not the type)

πŸ’œ SEE ALSO πŸ’œ

literally the whole plist friend group, fr fr β€” go say hi to all of them:


bestie reminder: this page lives in ./include/linux and it's dated October 2026 β€” so yeah, it's giving future icon energy πŸ”₯ go read the whole plist family, they all slay together πŸ’–

mwah πŸ’‹ β€” stay hydrated, read your headers, and may your last entry always be the one you wanted πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from