bcm_config_lre_advert(9)
β¨ bcm_config_lre_advert(9) β¨
okay so bestie, welcome to the kernel API manual π
this one is a little helper from the bcm PHY corner of the kernel, and honestly it's giving "quietly does one very specific job and does it well" energy π
πΈ NAME πΈ
bcm_config_lre_advert β sanitize and advertise Long-Distance Signaling auto-negotiation parameters β¨
π¦ SYNOPSIS π¦
int bcm_config_lre_advert (struct phy_device *phydev );
π ARGUMENTS π
phydevβ the targetphy_devicestruct π«Ά like, the PHY you're doing this to
π RETURN π
0β the PHY's advertisement hasn't changed, no cap π< 0β error, something went sideways π> 0β it has changed, slay π₯
π DESCRIPTION π
So what it actually does: it writes MII_BCM54XX_LREANAA with the appropriate values β¨
The values are supposed to be sanitized beforehand, so we make sure we only ever advertise what's actually supported π§ this is the important bit, don't skip it.
And the sanitization? Already done, bestie β it happens in phy_ethtool_ksettings_set π
so by the time this runs, the vibes are already checked.
π SEE ALSO π
- Kernel file
./drivers/net/phy/bcm-phy-lib.c bcm_linkmode_adv_to_lre_adv_t(9)
and that's the whole page, iconic honestly π this one lives in ./drivers/net/phy and the manual's dated October 2026 β mwah, go read the source, iykyk π
π¦ 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