ieee80211_n...c_terminated(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ieee80211_nan_func_terminated β€” okay bestie, this is the one that notifies everybody that a NAN function has been terminated πŸ’€ and yes, that's ieee80211_nan_func_terminated(9) from the Kernel API Manual, we're in section 9, get comfy πŸ’–

✨ SYNOPSIS ✨

void ieee80211_nan_func_terminated (struct ieee80211_vif *vif , u8
inst_id , enum nl80211_nan_func_term_reason reason , gfp_t gfp );

yeah it's a whole function signature, don't copy it by hand, just look at it πŸŽ€

πŸŽ€ ARGUMENTS πŸŽ€

  • vif β€” a struct ieee80211_vif pointer, the exact one you got handed from the add_interface callback 🫢
  • inst_id β€” the local instance id, lowkey important
  • reason β€” the termination reason, and it's gotta be one of the NL80211_NAN_FUNC_TERM_REASON_* values, no freelancing
  • gfp β€” allocation flags 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

So the whole vibe of this function is: you use it to notify mac80211 that a NAN function has terminated ✨ that's it, that's the job, main character energy.

⚠️ but ngl there's a big one β€” this function can't be called from hard irq. literally cannot. don't do it πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./include/net/mac80211.h β€” and okay the rest of these are the whole extended friend group, everybody's invited, no skips πŸ’–


that's literally everyone, periodt πŸ’… and this whole thing lives in ./include/net, dated October 2026 β€” no cap, that's the version and the date, slay πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from