phylink_replay_link_end(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is a page from the Kernel API Manual, bestie, and it's about phylink_replay_link_end β€” the little helper that ✨closes out✨ the link-callback replay for a driver that lost its state. yes we're doing lore today. sit down, hydrate, let's go 🧚


✨ NAME ✨

phylink_replay_link_end β€” literally "end replay of link callbacks for driver which lost state." that's it, that's the whole vibe. your driver blacked out πŸ’€ and this is the part where it comes back online and we re-run the callbacks. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

void phylink_replay_link_end (struct phylink *pl );

it returns void, meaning: nothing comes back to you, it just does the thing. main character energy honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • pl β€” a pointer to a struct phylink returned from phylink_create. like, the actual object you got handed earlier. don't be out here inventing your own, i'm begging πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

okay so picture this: you're a MAC driver. you might perform a destructive reset at runtime 😭 (yeah. destructive. like, wipes the slate). and after that the link callbacks are just… gone? stale? not it.

so this helper handles that. it calls:

  • your own driver's mac_config and mac_link_up methods πŸ’–
  • and also the pcs_config and pcs_link_up method of the split PCS (if any β€” key words, iykyk)

the way it's basically phylink_start's cousin but with one big difference: this one does not alter the state of the phylib PHY. nope. not touching that. hands off 🫢

⚠️ the rule, bestie, do not skip it: you must call this method only within the same rtnl_lock critical section as a previous phylink_replay_link_start. same lock section. that's the whole assignment. it's giving matched set πŸ’…

🌈 SEE ALSO 🌈

so many friends. a whole friend group. here's the ✨entire✨ squad, no cap, nobody left out:


and that's the page!! πŸ¦‹ sourced straight from ./drivers/net/phy, stamped October 2026, filed under phylink_replay_link_end(9) in the Kernel API Manual. mwah. go forth and end your replay correctly, bestie πŸ’œπŸŽ€β­

πŸ“¦ where this page comes from