list_for_each(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ list_for_each(9) πŸ¦‹

okay so bestie, this page is from the Kernel API Manual, and it's giving main character energy for the function that literally exists to iterate over a list. no cap, she's iconic. πŸ’…

🌸 NAME 🌸

list_for_each β€” iterate over a list. that's the whole gig, and she ate. ✨

✨ SYNOPSIS ✨

okay here's the call, exactly as written so you don't fumble it:

list_for_each (pos , head );

πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” the struct list_head to use as a loop cursor. literally your loop-cursor bestie. πŸŒ€
  • head β€” the head for your list. that's the vibe, fr fr. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹


xoxo πŸ’– source/version: ./tools/usb/usbip/libsrc Β· date: October 2026 Β· page: list_for_each(9) πŸŽ€

πŸ“¦ where this page comes from