STRUCT BRCMFMAC_PD_CC_ENTRY(9)
π NAME π
struct brcmfmac_pd_cc_entry β bestie, this is the struct that translates a user space country code (iso3166) into a firmware country code and revision. It's giving translator energy β¨
Ok so real talk, this page lives in the Kernel API Manual and it's all about one lil struct doing the country-code glow-up. Let me walk you through it π«Ά
β¨ SYNOPSIS β¨
struct brcmfmac_pd_cc_entry {
char iso3166[BRCMFMAC_COUNTRY_BUF_SZ];
char cc[BRCMFMAC_COUNTRY_BUF_SZ];
s32 rev;
};
Look at her. Three members. Iconic. No cap. π
π¦ Members π¦
Honestly the whole struct is just three fields and each one is main character in its own way:
iso3166β theiso3166alpha 2 country code string π (yes, the user space one, the one you actually type)ccβ the firmware country code string πΈ (the glow-up version the firmware understands)revβ the firmware country code revision, ans32π₯
Not me obsessing over the fact that the two string buffers are both sized BRCMFMAC_COUNTRY_BUF_SZ β matching sizes, matching vibes, periodt π
π SEE ALSO π
- Kernel file
./include/linux/platform_data/brcmfmac.h struct brcmfmac_sdio_pd(9)struct brcmfmac_pd_cc(9)struct brcmfmac_pd_device(9)struct brcmfmac_platform_data(9)
iykyk, go read the whole platform_data fam, they're all linked and they all slay β¨
<div align="center">π π¦ πΈ π«Ά</div>
And that's the whole page, bestie! This absolute gem comes from ./include/linux/platform_data, dated October 2026, and the manual name itself is the Kernel API Manual. Mwah, go forth and translate those country codes ππ
π¦ 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