plist_first(9)
π plist_first β the Kernel API Manual, but make it cute
Okay bestie, welcome to the plist_first(9) page from the Kernel API Manual, aka the glow-up era of linked lists β¨
πΈ NAME πΈ
plist_first β grab the first node, and likeβ¦ that also means the one with the highest priority, no cap π
π SYNOPSIS π
struct plist_node * plist_first (const struct plist_head *head );
π¦ DESCRIPTION π¦
So real talk: this function hands you back the first node in the plist, which is also the highest-priority one π
Heads up bestie! This assumes the plist is _not_ empty. That's the whole vibe check here β it does not check for you. π
β¨ ARGUMENTS β¨
headβ thestruct plist_headpointer, like, the head of the whole thing π«Ά
π SEE ALSO π
Kernel file ./include/linux/plist.h β plus the whole friend group:
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_last(9)
And that's the tea β β that was plist_first(9), served fresh from ./include/linux, dated October 2026. Stan the kernel, mwah ππ
π¦ 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