bcm_linkmod...to_lre_adv_t(9)
π bcm_linkmode_adv_to_lre_adv_t π
okay bestie, so this is a page from the Kernel API Manual and it's literally about one tiny little helper function that does one tiny little job, and honestly? she's iconic for it. Let's get into it π
β¨ NAME β¨
bcm_linkmode_adv_to_lre_adv_t β translate linkmode advertisement to LDS πΈ
like, that's the whole gig. translating. she's a translator. a little bilingual queen for your PHY π«Ά
π¦ SYNOPSIS π¦
u32 bcm_linkmode_adv_to_lre_adv_t (unsigned long *advertising );
that's it. that's the signature. one argument, returns a u32, no cap π
π ARGUMENTS π
advertisingβ the linkmode advertisement settings π like, the settings you wanna advertise, handed over as a pointer to anunsigned long.
β RETURN β
she gives you back the LDS Auto-Negotiation Advertised Ability register value π that's the return, that's the whole reward for calling her.
π§ DESCRIPTION π§
so the way that this works is: this is a small helper function (small but mighty, main character energy fr fr π₯) that translates your linkmode advertisement settings into phy LDS autonegotiation advertisements β specifically for the MII_BCM54XX_LREANAA register, which belongs to Broadcom PHYs capable of LDS π
so if your PHY speaks LDS and it's a Broadcom one, this is the little function that takes your advertisement settings and puts them in the right language for that register. translator bestie. periodt π
π SEE ALSO π
- Kernel file
./drivers/net/phy/bcm-phy-lib.cπ bcm_config_lre_advert(9)β go read that one too, iykyk π
ngl bestie, if you're poking around LRE advertisement stuff, read bcm_config_lre_advert(9) next β it's literally right there in the SEE ALSO and it's giving "the other half of the story" β¨
and that's the page!! π this one came out of the ./drivers/net/phy directory, from October 2026 π go forth and advertise responsibly, bestie π¦ππ
π¦ 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