phylink_replay_link_begin(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, you're in the <pink>phylink_replay_link_begin</pink> page of the Kernel API Manual, and honestly? this one is short, sweet, and lowkey iconic. it's giving "small helper, big job." let's get into it ✨


✨ NAME ✨

phylink_replay_link_begin β€” begin replay of link callbacks for driver which loses state πŸŽ€

like, the driver forgot everything (state loss era 😭) and now we gotta start over. this is the "begin" half, iykyk.


πŸ¦‹ SYNOPSIS πŸ¦‹

void phylink_replay_link_begin (struct phylink *pl );

nothing returned, nothing gained β€” just vibes and a void. it's giving "i do the work, i don't need credit." πŸ’…


🫢 ARGUMENTS 🫢

  • pl β€” a pointer to a struct phylink returned from phylink_create. ngl, if you didn't get it from phylink_create, bestie... what are you doing. πŸ‘€

🌸 DESCRIPTION 🌸

so this is a helper for MAC drivers which may perform a destructive reset at runtime. yes, destructive. that's not a cute word and we're not gonna pretend it is. πŸ’€

when that happens, two things get called:

  • the own driver's mac_link_down method
  • the pcs_link_down method of the split PCS (if any) 🧚

it's similar to phylink_stop, except it does not alter the state of the phylib PHY β€” the assumption being that the PHY is not affected by the MAC destructive reset. so like... the PHY is fine, she's unbothered, she's in her main character energy, and we leave her alone. periodt. πŸ‘‘

lowkey important: the "it does not alter the state of the phylib PHY" part is the whole point of this function existing. that's the difference. don't miss it fr fr.

πŸ”₯ SEE ALSO πŸ”₯

the whole phylink friend group showed up, and they all came dressed as manpage refs. every single one. no gatekeeping 🫢

and yes, phylink_replay_link_end(9) is right there at the end, because every begin needs her end. balance. 🌈


and that's the whole page!! πŸŽ€ this little beauty lives over in ./drivers/net/phy, dated October 2026, and the whole thing is filed under phylink_replay_link_begin(9) in the Kernel API Manual. go read phylink_replay_link_end(9) next and complete the set, bestie β€” you've got this πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from