PLIST_HEAD(9)
π PLIST_HEAD(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to PLIST_HEAD(9) from the Kernel API Manual β¨ this one is short and sweet and honestly kind of iconic for it β no cap, it's a one-job macro and it does that job flawlessly π
πΈ NAME πΈ
PLIST_HEAD β declare and init plist_head
like, that's it, that's the whole personality π it declares the thing AND inits the thing, one stop shop, we love an efficient queen π
β¨ SYNOPSIS β¨
PLIST_HEAD (head );
yes the spacing is a little cursed, no we are not fixing it, it's giving "written at 3am and shipped anyway" π copy it exactly, bestie, character for character π
π¦ ARGUMENTS π¦
headβ the name you're giving to yourstruct plist_headvariable π«Ά that's the whole assignment: pick a name, that name becomes your variable. main character naming energy, your call, go off π
π SEE ALSO π
the whole plist fam is linked up below, and just so we're clear, these all live in the kernel file ./include/linux/plist.h πβ¨
PLIST_HEAD_INIT(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)plist_last(9)
that's eighteen entries of pure plist excellence, go read them all, iykyk π π₯
lowkey a whole vibe check: this page literally only declares and inits. no hidden lore, no deprecated drama, no danger zone. just vibes and a macro π§ββοΈ
and that's the whole page, bestie!! π this lil beauty comes to you from source ./include/linux, dated October 2026, and it goes by PLIST_HEAD(9) β stan a consistent footer, periodt πππ
π¦ 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