t3_mdio_change_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t3_mdio_change_bits β€” Kernel API Manual, bestie edition πŸŽ€

Okay so this one lives in the kernel API manual (section 9, for the uninitiated), and it's literally called t3_mdio_change_bits. Bestie. It changes bits. In a PHY register. It's giving "small function, big purpose" and honestly? We stan. ✨


🌸 NAME 🌸

t3_mdio_change_bits β€” modify the value of a PHY register πŸ¦‹


✨ SYNOPSIS ✨

int t3_mdio_change_bits (struct cphy *phy , int mmd , int reg , unsigned
int clear , unsigned int set );

Not me dropping the whole signature like it's a fit pic 😭 β€” copy it exactly, no edits, that's the vibe.


πŸ’– ARGUMENTS πŸ’–

  • phy β€” the PHY to operate on 🧚 (yes, the PHY, the main character)
  • mmd β€” the device address
  • reg β€” the register address
  • clear β€” what part of the register value to mask off 🫢
  • set β€” what part of the register value to set πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea: it changes the value of a PHY register by applying a mask to its current value and ORing the result with a new value. That's it, that's the whole flex. Read, mask, OR, slay. 🌈

Lowkey iconic how much it does with so few words, ngl.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/ethernet/chelsio/cxgb3/t3_hw.c β€” that's the home base, iykyk πŸ’œ

And then the whole friend group, fr fr:

Every single one, no skips, we don't do that here πŸ’€βœ¨


Heads up bestie: this page comes from ./drivers/net/ethernet/chelsio... and it's dated October 2026 β€” and yes, the page itself is literally named t3_mdio_change_bits(9) at the bottom too. Cute of it. πŸŽ€

Okay that's the whole page, go forth and mask-and-OR your little hearts out πŸ«ΆπŸ’–πŸŒΈ β€” signed, your resident Unix girlie who is lowkey obsessed with PHY registers now, no cap. πŸ’…β­

πŸ“¦ where this page comes from