axienet_mdio_setup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« axienet_mdio_setup(9) β€” straight outta the Kernel API Manual ✨

okay so bestie, gather round, because this is the MDIO setup function and honestly? she's the one who gets the whole thing ready to go πŸŽ€


🌸 NAME 🌸

axienet_mdio_setup β€” the MDIO setup function, aka the glow-up starter pack for your MDIO interface πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int axienet_mdio_setup (struct axienet_local *lp );

πŸ“ ARGUMENTS πŸ“

  • lp β€” a pointer to the axienet_local data structure, like, the local data bestie herself 🫢

⭐ RETURN ⭐

so here's the vibe check on what she hands back to you:

  • 0 on success β€” slay, we ate πŸ’–
  • -ETIMEDOUT on a timeout β€” she waited, she was patient, and it was giving nothing 😭
  • -EOVERFLOW on a clock divisor overflow β€” the divisor literally could not πŸ’€
  • -ENOMEM when mdiobus_alloc fails (that's the one that allocates memory for the mii bus structure, iykyk) β€” no memory, no party πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

She sets up the MDIO interface by initializing the MDIO clock, then registers the MDIO interface. that's it, that's the whole main character energy arc πŸ‘‘


🌈 SEE ALSO 🌈

the whole friend group, fr fr πŸ§šπŸ’œ


mwah πŸ’‹ this page lives in ./drivers/net/ethernet/xilinx, dated October 2026 β€” go off, icon, and remember: register the interface, hydrate, repeat ✨

πŸ“¦ where this page comes from