STRUCT BRCMFMAC_PD_CC_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the iso3166 alpha 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, an s32 πŸ”₯
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