mdio45_links_ok(9)
π mdio45_links_ok(9) π
okay bestie, welcome to the Kernel API Manual β¨ β we're doing mdio45_links_ok(9) today, and it's literally the vibe check for your link status π
πΈ NAME πΈ
mdio45_links_ok β is link status up/OK π
π SYNOPSIS π
int mdio45_links_ok (const struct mdio_if_info *mdio , u32 mmd_mask );
π ARGUMENTS π
mdioβ the MDIO interface, aka the main character here π«Άmmd_maskβ the mask for MMDs to check π
π¦ DESCRIPTION π¦
Returns 1 if the PHY reports link status up/OK, and 0 otherwise. No cap, that's the whole mood πβ¨
mmd_mask is normally mdio->mmds, but if loopback is enabled, the MMDs being bypassed should be excluded from the mask. Like, don't check the ones you're skipping, bestie ππ
π SEE ALSO π
Kernel file ./drivers/net/mdio.c β and the whole squad is here:
mdio45_probe(9)mdio_set_flag(9)mdio45_nway_restart(9)mdio45_ethtool_ksettings_get_npage(9)mdio_mii_ioctl(9)
mwah π this lil page comes from ./drivers/net, dated October 2026 β catch you in the kernel, 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