phy_modify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_modify(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one is literally phy_modify(9), and it's giving "tiny convenience function with main character energy." Let's get into it. πŸŽ€


✨ NAME ✨

  • phy_modify β€” convenience function for modifying a given PHY register πŸ’–

🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • phydev β€” the phy_device struct πŸ‘‘
  • regnum β€” register number to write ✍️
  • mask β€” bit mask of bits to clear 🧹
  • set β€” new value of bits set in mask to write to regnum πŸ’«

πŸ’€ NOTE πŸ’€

MUST NOT be called from interrupt context, bestie. Like, MUST NOT. 😭 Because the bus read/write functions may wait for an interrupt to conclude the operation. So yeah β€” not the vibe for interrupt context, fr fr. πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/phy/phy-core.c β€” and literally all of these icons:


mwah πŸ’‹ this page lives under ./drivers/net/phy, dated October 2026, and it's literally phy_modify(9) signing off. slay. 🫢✨

πŸ“¦ where this page comes from