plist_first(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct plist_head pointer, like, the head of the whole thing 🫢

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/plist.h β€” plus the whole friend group:


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