hns_mdio_write_c22(9)
π 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 au16, 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:
- Kernel file
./drivers/net/ethernet/hisilicon/hns_mdio.c hns_mdio_write_c45(9)hns_mdio_read_c22(9)hns_mdio_read_c45(9)hns_mdio_reset(9)hns_mdio_probe(9)hns_mdio_remove(9)
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
- 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