hns_mdio_write_c45(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the hns_mdio_write_c45(9) page from the Kernel API Manual πŸ’– this is the kernel-API corner for the hns_mdio_write_c45 function, and we are keeping every single detail exactly where it belongs. no cap ✨

πŸŽ€ NAME πŸŽ€

hns_mdio_write_c45 β€” access phy register πŸ’…

🌸 SYNOPSIS 🌸

here's the signature in all its exact glory, bestie:

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

πŸ’… ARGUMENTS πŸ’…

okay so the function takes these five, and yes we're keeping the labels exactly:

  • bus β€” mdio bus 🚌
  • phy_id β€” phy id πŸ†”
  • devad β€” device address to read πŸ‘€ the original literally says "read" here, and we are not editing it, periodt
  • regnum β€” register num πŸ”’
  • data β€” register value πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

short and sweet, bestie:

Return 0 on success, negative on failure

that's it, that's the description ✨ slay.

🌈 SEE ALSO 🌈

go peek at the kernel file and the sibling functions:


xoxo bestie πŸ’œ β€” source/version: ./drivers/net/ethernet/hisilicon, date: October 2026. that's the whole page, mwah πŸ’‹

πŸ“¦ where this page comes from