phy_modify_paged_changed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

phy_modify_paged_changed β€” bestie, it's the function for modifying a paged register ✨ (yes that's the whole vibe, it does exactly what it says on the tin πŸŽ€)

This one lives in the Kernel API Manual, so like… kernel-level stuff, no cap πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int phy_modify_paged_changed (struct phy_device *phydev , int page , u32
regnum , u16 mask , u16 set );

Like, that's the whole call signature, copy it exactly or the compiler will simply end you 😭


🌸 ARGUMENTS 🌸

  • phydev β€” a pointer to a struct phy_device (literally the star of the show, the phy in question 🫢)
  • page β€” the page for the phy (yep, pages within the phy, she's paged πŸ“„)
  • regnum β€” register number (which register we're messing with πŸ”’)
  • mask β€” bit mask of bits to clear (these bits? cleared. gone. bye πŸ’€)
  • set β€” bit mask of bits to set (these bits? set. iconic πŸ‘‘)

✨ DESCRIPTION ✨

okay so here's the tea β˜• β€” this function returns:

  • a negative errno if something went wrong 😬
  • 0 if there was no change (nothing happened, anticlimactic honestly)
  • 1 in case of change πŸ”₯ (slay, something actually moved)

That's it. That's the whole description. Short king behavior ngl πŸ’œ

fr fr if you're checking the return value, 0 and 1 are both "no error" β€” don't go treating 0 as failure, that's a vibe check you'd fail πŸ™ˆ

🧚 SEE ALSO 🧚

Kernel file ./drivers/net/phy/phy-core.c β€” that's where the magic lives, iykyk πŸ¦‹

And the whole friend group, in order, no gatekeeping:


That's the whole page bestie, go forth and modify those paged registers πŸ’–βœ¨

Sign-off time πŸŽ€ β€” this lil masterpiece comes from ./drivers/net/phy, dated October 2026. Bestie certified, kernel approved, periodt πŸ’…πŸŒˆ

πŸ“¦ where this page comes from