list_for_each_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

list_for_each_rcu β€” iterate over a list in an RCU-safe fashion. okay so this is list_for_each_rcu(9), straight out of the Kernel API Manual, and she's here to help you iterate over a list in an RCU-safe fashion. no cap. πŸ’…βœ¨

✨ SYNOPSIS ✨

list_for_each_rcu (pos , head );

πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” the struct list_head to use as a loop cursor. That's your loop cursor, bestie β€” she's doing the walking. πŸŒ€
  • head β€” the head for your list. Yes, literally the head of your list. Periodt. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/rculist.h is the home base, and here's the whole see-also friend group, bestie:


mwah πŸ’‹ β€” source/version: <pink>./include/linux</pink>; dated October 2026. list_for_each_rcu(9) signing off. slay responsibly, bestie. πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from