phy_restart_aneg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_restart_aneg(9) πŸ’…

okay bestie, so you're in the Kernel API Manual and the page you opened is phy_restart_aneg β€” yes, that's the function name and the manual page name, it's giving main character energy fr fr ✨


🌸 NAME 🌸

phy_restart_aneg β€” restart auto-negotiation πŸŽ€

Like, the whole entire point of this function. It restarts auto-negotiation. That's the vibe. No cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int phy_restart_aneg (struct phy_device *phydev );

look at her, she's so simple and so iconic πŸ’–


✨ ARGUMENTS ✨

  • phydev β€” the target phy_device struct πŸ‘‘ like, this is the phy device that's about to get its aneg restarted. your main character argument, if you will.

πŸ’œ DESCRIPTION πŸ’œ

So basically: restart the autonegotiation on phydev. That's it, that's the function 🫢

Returns >= 0 on success, or a negative errno on error. So like β€” zero or above? slay, you're good. Negative? that's an error bestie, handle it 😭

ngl, >= 0 means zero also counts as success, so don't go doing if (ret) and getting all confused about it πŸ™ˆ

🌈 SEE ALSO 🌈

the way this list is long β€” she's an icon, she's a legend, and she is the moment. all of these are in the kernel file ./drivers/net/phy/phy.c πŸ”₯ (iykyk):


and that's the whole page, bestie 🧚 go forth and restart some auto-negotiation πŸ’…

sign-off szn: this lil masterpiece lives in ./drivers/net/phy, stamped October 2026, and it's page phy_restart_aneg(9) of the Kernel API Manual β€” mwah, xoxo πŸ’‹πŸ“

πŸ“¦ where this page comes from