ieee80211_it...stations_mtx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to ieee80211_it...stations_mtx(9) β€” the Kernel API Manual page for ieee80211_iterate_stations_mtx, aka the "go walk all the stations for me" function πŸ’… literal station-iteration royalty, no cap.

✨ SYNOPSIS ✨

void ieee80211_iterate_stations_mtx (struct ieee80211_hw *hw , void
     (*iterator)(void *data, struct ieee80211_sta *sta) , void *data );

🌸 ARGUMENTS 🌸

  • hw β€” the hardware struct, and yes it's the one whose interfaces you're iterating over 🫢 like, this is the whole universe we're walking through.
  • iterator β€” the iterator function you want called. you bring the callback, she brings the stations ✨
  • data β€” the first argument that gets handed to your iterator function. it's your little bag of snacks for the journey πŸ“

πŸ’– DESCRIPTION πŸ’–

so this function iterates over all the stations associated with a given hardware that are currently uploaded to the driver, and calls the callback function for each one of them πŸ’« that's it, that's the whole vibe β€” a little conga line of stations and your callback saying hi to every single one.

Important: this version can only be used while holding the wiphy mutex πŸ”’ like, that's the entire personality of the _mtx suffix, bestie. don't try it without the mutex, that's not a slay, that's a crash πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./include/net/mac80211.h and there is sooooo much more lore where this came from πŸ‘‘ here's the whole extended universe:


and that's the whole page, bestie 🫢 this lore drop came from ./include/net and it's dated October 2026 β€” the ieee80211_it...stations_mtx(9) era, iconic behavior honestly πŸ’–βœ¨ go hold that wiphy mutex and iterate responsibly, mwah πŸ˜­πŸ‘‘

πŸ“¦ where this page comes from