hns_mdio_write_c45(9)
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, periodtregnumβ 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:
- Kernel file
./drivers/net/ethernet/hisilicon/hns_mdio.c hns_mdio_write_c22(9)hns_mdio_read_c22(9)hns_mdio_read_c45(9)hns_mdio_reset(9)hns_mdio_probe(9)hns_mdio_remove(9)
xoxo bestie π β source/version: ./drivers/net/ethernet/hisilicon, date: October 2026. that's the whole page, mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms