reg_leave_invalid_nan_wk(9)
π reg_leave_invalid_nan_wk β the Kernel API Manual, section 9 bestie π
Okay so picture this: you're deep in the kernel wireless regulatory vibes, and you need a hand tearing down a NAN. That's literally this function. Welcome to the reg_leave_invalid_nan_wk(9) page, you're gonna slay it π
β¨ NAME β¨
reg_leave_invalid_nan_wk β bestie, this one checks the channels and then tears down NAN when it's unusable π₯
π¦ SYNOPSIS π¦
void reg_leave_invalid_nan_wk (struct work_struct *work );
πΈ ARGUMENTS πΈ
workβ the work struct. that's it, that's the whole vibe. she's the work item getting worked π«Ά
π DESCRIPTION π
So here's the tea β: stopping a NAN interface needs the RTNL, and reg_leave_invalid_chans_wk just cannot do that, because that one runs with the wiphy mutex held. So this lil work item is the main character that shows up to handle it instead π
periodt.
π₯ SEE ALSO π₯
Lowkey go read the whole regulatory extended universe, the lore is unmatched:
Kernel file ./net/wireless/reg.hregulatory_hint_indoor(9)regulatory_netlink_notify(9)regulatory_hint_found_beacon(9)regulatory_hint_country_ie(9)regulatory_hint_disconnect(9)cfg80211_get_unii(9)regulatory_indoor_allowed(9)regulatory_propagate_dfs_state(9)reg_dfs_domain_same(9)reg_reload_regdb(9)reg_check_channels(9)reg_leave_invalid_chans_wk(9)
π and that's the page !! tysm for reading, mwah π
Sign-off time π§β¨: this lil masterpiece lives out of ./net/wireless, dropped in October 2026, and it's part and parcel of the Kernel API Manual β no cap ππ
π¦ 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