plist_last_entry(9)
πΈ 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β thestruct plist_headpointer π«Ά this is your starting point, the head of the partytypeβ the type of the struct this is embedded in β like, the actual big struct you care about, not just the littlelist_headhiding inside itmemberβ the name of thelist_headwithin 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:
- Kernel file
./include/linux/plist.h PLIST_HEAD_INIT(9)PLIST_HEAD(9)PLIST_NODE_INIT(9)plist_head_init(9)plist_node_init(9)plist_for_each(9)plist_for_each_continue(9)plist_for_each_safe(9)plist_for_each_entry(9)plist_for_each_entry_continue(9)plist_for_each_entry_safe(9)plist_head_empty(9)plist_node_empty(9)plist_first_entry(9)plist_next(9)plist_prev(9)plist_first(9)plist_last(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms