plist_last(9)
π plist_last(9) β like, the actual manual page, bestie
okay so first things first: this whole thing lives in the Kernel API Manual, and the star of the show is plist_last. yes that's the manual name, no I'm not being weird about it, it's literally in the header bestie π
πΈ NAME πΈ
plist_last β return the last node (and thus, lowest priority)
no cap, that's the whole pitch. it hands you the last node, which by plist logic is the one with the lowest priority. iconic behaviour honestly π
β¨ SYNOPSIS β¨
struct plist_node * plist_last (const struct plist_head *head );
look at her go. one function, one job, zero drama π¦
π ARGUMENTS π
headβ thestruct plist_headpointer. that's it. that's the whole argument list. give her the head of the plist and she'll do the rest π«Ά
π DESCRIPTION π
so here's the thing, and I need you to really hear me on this one:
Assumes the plist is _not_ empty.
like, fr fr. that's the entire caveat. she is assuming there's at least one node in there. if you roll up with an empty plistβ¦ bestie. no. don't. this is not the function for that. do your vibe check with something else first ππ
when the plist does have nodes though? she ate. last node, lowest priority, done. main character energy π₯
π SEE ALSO π
the whole extended friend group, all of them are (9) pages, all of them iconic in their own way:
- 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_last_entry(9)plist_next(9)plist_prev(9)plist_first(9)
iykyk π literally the entire plist cinematic universe.
and that's the page!! π this little gem is filed under ./include/linux and dated October 2026, so go forth, check your plist isn't empty, and slay π
β¨π
π¦ 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