list_for_each(9)
π¦ 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β thestruct list_headto use as a loop cursor. literally your loop-cursor bestie. πheadβ the head for your list. that's the vibe, fr fr. π
π¦ SEE ALSO π¦
- Kernel file
./tools/usb/usbip/libsrc/list.hβ the reference file, iykyk. π list_add(9),list_del(9),list_entry(9),list_for_each_safe(9),container_of(9)β the whole friend group, go say hi. π«Ά
xoxo π source/version: ./tools/usb/usbip/libsrc Β· date: October 2026 Β· page: list_for_each(9) π
π¦ 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