phylink_ethtool_nway_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Ok so this is a page from the Kernel API Manual (the phylink_ethtool_nway_reset(9) one, yes the whole thing is named after the function, iconic behavior honestly) and we're gonna get you comfy with it. Buckle up πŸ’–


✨ NAME ✨

phylink_ethtool_nway_reset β€” restart negotiation πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int phylink_ethtool_nway_reset (struct phylink *pl );

πŸŽ€ ARGUMENTS πŸŽ€

  • pl β€” a pointer to a struct phylink returned from phylink_create 🫢 like, that's it, that's the whole argument, she's low maintenance.

πŸ’œ DESCRIPTION πŸ’œ

So what does she do? She restarts negotiation for the phylink instance you pointed at with pl. Periodt.

Which means: any attached phy is gonna restart negotiation with the link partner πŸ”₯ and β€” plot twist β€” if the MAC is in a BaseX mode, the MAC will also be requested to restart negotiation. Not me having two whole things restarting at once 😭 the multitasking is giving main character energy.

Returns zero on success, or a negative error code πŸ‘‘ so like, check the return value fr fr, that's your vibe check on whether it worked.


🌈 SEE ALSO 🌈

The gang's all here, no cap β€” every single one of these is part of the phylink fam:


Ok that's the whole page, you ate that πŸ’… tysm for reading, mwah 🫢

Sign-off time: this one lives in ./drivers/net/phy (that's the source path, keep it in your notes bestie πŸ“Œ) and the version/date stamp is October 2026 βœ¨πŸ¦‹ go forth and restart some negotiation, iykyk 🌸

πŸ“¦ where this page comes from