genphy_c45_...restart_aneg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, gather round β€” this is genphy_c45_check_and_restart_aneg, and its whole job is literally just enabling and restarting auto-negotiation. that's it. that's the vibe. we love a function with a clear purpose ✨

(this one lives in the Kernel API Manual, if you were wondering where we're at rn πŸ’…)


🌸 SYNOPSIS 🌸

int genphy_c45_check_and_restart_aneg (struct phy_device *phydev , bool
restart );

it returns an int, it takes two things, and yes the line break is just how it's written, don't come for me πŸ™ˆ


πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” the target phy_device struct. like, the PHY we're doing all this to. main character energy fr 🫢
  • restart β€” a bool, and it's giving "do you actually want an aneg restart or not". whether aneg restart is requested, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

so the big assumption here: this function assumes that the auto-negotiation MMD is present. like, it's not gonna go check for you and be like "hmm is it there tho" β€” nope, that's on you. iykyk πŸ’€

then it does exactly what it says on the tin: check, and restart auto-negotiation if needed. lowkey iconic, highkey necessary. that's the whole function, no cap ✨


🌈 SEE ALSO 🌈

this is the part where the manpage just lists literally everyone in the group chat, so buckle up bestie πŸ’œ they all live in the kernel file ./drivers/net/phy/phy-c45.c:


ngl bestie, that's forty-three whole cross-references. iconic of the kernel to be that thorough πŸ’…

and that's a wrap! πŸŽ€ this little page came to you from ./drivers/net/phy, stamped October 2026, straight out of the Kernel API Manual β€” mwah, love u, go restart some auto-negotiation responsibly πŸ’–πŸ¦‹β­

πŸ“¦ where this page comes from