plist_for_each(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ plist_for_each(9) β€” the kernel API manual, bestie edition ✨

Okay so real talk, this is a page from the Kernel API Manual and it's about plist_for_each, which is literally the little loop that walks your plist for you. It's short, it's sweet, and it's giving "tiny but essential" energy. Let's go πŸ’…


🌸 NAME 🌸

plist_for_each β€” iterate over the plist. That's it, that's the whole job. She loops, she iterates, she slays. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

plist_for_each (pos , head );

No cap, that's the whole signature. Two things go in, and the loop does its thing. πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • pos β€” the type * you're using as your loop counter. She's the main character of the loop, keeping track of where you are rn. πŸŒ€
  • head β€” the head of your list. This is where the whole vibe starts, iykyk. πŸ‘‘

🌈 SEE ALSO 🌈

Bestie, there's a whole friend group here, all chillin' in the kernel file ./include/linux/plist.h:

Like, the whole squad is documented, so go read them too. Obsessed with a complete reference section honestly 🫢


Heads up bestie: this page is just the loop macro itself β€” the deets on the plist structures live in those SEE ALSO pages, so don't come for me if you wanted a field-by-field breakdown. πŸ’€

And that's the whole page! πŸŽ€ Source/version vibes: she lives in ./include/linux and the date on this one is October 2026 β€” so yeah, mark your calendar bestie, this page is from the future and she ate. πŸ¦‹βœ¨πŸ’œ

πŸ“¦ where this page comes from