for_each_active_interface(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… for_each_active_interface(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for for_each_active_interface(9), and it's honestly one of the shortest little icon pages in the whole mac80211 saga. no cap. let's get into it 🫢


🌸 NAME 🌸

for_each_active_interface β€” iterate active interfaces under wiphy mutex πŸ‘‘

so basically it's a loop macro that walks the active interfaces, and it does the whole thing while holding the wiphy mutex. that's the vibe check right there. πŸ”₯


✨ SYNOPSIS ✨

for_each_active_interface (vif , hw );

look at her. tiny. iconic. no notes. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • vif β€” the iterator variable πŸ’– this is the one that goes round and round, being each interface in turn. she's the main character of the loop, fr fr.
  • hw β€” the HW to iterate for 🌈 like, which hardware are we doing this for? that one. the HW.

πŸ¦‹ SEE ALSO πŸ¦‹

okay so this list is literally the entire mac80211 universe in one place β€” do not skip it, i'm serious, every single one of these is part of the page πŸ’€βœ¨


bestie moment: this macro iterates under the wiphy mutex, so keep that in mind when you're looping, okay? that's literally the whole name of the page. πŸ’œ

and that's the page!! 273 see-also entries and like four lines of actual content, which is so on brand honestly. πŸ’€πŸŽ€

β€” signed off from ./include/net πŸ“, dated October 2026 ✨, and yes this was the for_each_active_interface(9) page, mwah πŸ’‹πŸ‘‘

πŸ“¦ where this page comes from