regdom_intersect(9)
π¦ regdom_intersect(9) β the Kernel API Manual page, bestie edition β¨
okay so this is regdom_intersect from the Kernel API Manual and it's genuinely one of the most satisfying little functions ever β like, it takes two whole regulatory domains and finds the overlap?? main character energy fr π
β¨ NAME β¨
regdom_intersect β do the intersection between two regulatory domains
π SYNOPSIS π
struct ieee80211_regdomain * regdom_intersect (const struct
ieee80211_regdomain *rd1 , const struct ieee80211_regdomain *rd2 );
πΈ ARGUMENTS πΈ
rd1β first regulatory domain. your girl number one π«Άrd2β second regulatory domain. the other one, also valid, also iconic π
β DESCRIPTION β
so like, use this function to get the intersection between two regulatory domains β literally the stuff they both agree on, no cap π₯
Once it's completed, we will mark the alpha2 for the rd as intersected, "98", because β and this is the important bit, bestie β no one single alpha2 can represent this regulatory domain. it's just too special for one country code ππ
Returns a pointer to the regulatory domain structure which will hold the resulting intersection of rules between rd1 and rd2. And don't even worry about the memory, because we will kzalloc this structure for you β¨π«Ά (yes, zeroed out, yes, handed to you on a little platter, slay).
π RETURN π
the intersected regdomain π
π SEE ALSO π
- Kernel file
./net/wireless/reg.cβ Wireless regulatory infrastructure(9) π§ - enum reg_request_treatment(9)
- freq_in_rule_band(9)
- reg_process_hint_core(9)
- reg_process_hint_user(9)
- reg_process_hint_driver(9)
- reg_process_hint_country_ie(9)
all of these are lowkey part of the same wireless reg circus and you should absolutely go read them, iykyk ππ
heads up: the "98" alpha2 marker is not a real country code, it's literally just us flagging "this domain is an intersection" β do not go looking for country 98, she does not exist π
and that's the whole page!! brought to you from ./net/wireless, dated October 2026, in the Kernel API Manual β regdom_intersect(9) out here being a whole legend. mwah, periodt ππ
π¦ 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