hns_mdio_write_c22(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hns_mdio_write_c22 β€” access phy register πŸŽ€

okay so bestie, this one lives in the Kernel API Manual (section 9, kernel-level stuff, iykyk) and honestly? she's a little one. a tiny icon. a single job. but we stan a focused main character ✨


✨ SYNOPSIS ✨

int hns_mdio_write_c22 (struct mii_bus *bus , int phy_id , int regnum ,
       u16 data );

that's it. that's the whole vibe. five things go in, one int comes out 🫢


🌸 ARGUMENTS 🌸

  • bus β€” the mdio bus, aka the whole friend group this phy is hanging out on 🚌
  • phy_id β€” the phy id, so we know which friend we're talking to πŸ’–
  • regnum β€” register num, the exact spot inside them we're poking πŸ‘€
  • data β€” register value, the actual thing we're putting there (it's a u16, no cap) πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this is write energy for a phy register over c22. the whole entire summary is β€”

Return 0 on success, negative on failure 😭

that's the tea. 0? slay, it worked. negative? not slay, something's wrong, but she's telling you about it πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

like the rest of the squad, fr fr:

the c45 girlies are right there if you need them, just saying πŸ’…


mwah πŸ’œ that's the page! brought to you by the fine people at ./drivers/net/ethernet/hisilicon, dated October 2026 β€” go forth and write your registers, bestie, and remember: check the return value. always. πŸ§šβ€β™€οΈπŸŒˆβ­

πŸ“¦ where this page comes from