phy_register_fixup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is the phy_register_fixup(9) manual page β€” yes, the kernel API one β€” and it's giving β€œtiny function, big responsibilities” πŸ’…. It creates a new phy_fixup and adds it to the list. register the fixup, bestie πŸŽ€.


🌸 SYNOPSIS 🌸

this is the exact signature, no cap:

int phy_register_fixup (const char *bus_id , u32 phy_uid , u32
       phy_uid_mask , int (*run)(struct phy_device *) );

πŸ’– ARGUMENTS πŸ’–

okay here's the cast of characters 🫢:

  • bus_id β€” A string which matches phydev->mdio.dev.bus_id (or NULL)
  • phy_uid β€” Used to match against phydev->phy_id (the UID of the PHY)
  • phy_uid_mask β€” Applied to phydev->phy_id and fixup->phy_uid before comparison (or 0 to disable id-based matching)
  • run β€” The actual code to be run when a matching PHY is found

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/net/phy/phy_device.c is in the group chat too β€” and here's the whole squad of related pages, fr fr πŸ‘‘:

with so much love from ./drivers/net/phy, October 2026, on the phy_register_fixup(9) page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from