mdio45_links_ok(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


mwah πŸ’‹ this lil page comes from ./drivers/net, dated October 2026 β€” catch you in the kernel, bestie πŸ«ΆπŸ‘‘

πŸ“¦ where this page comes from