igc_read_xmdio_reg(9)
π igc_read_xmdio_reg(9) π
okay so this is a page from the Kernel API Manual, bestie β yes we're in kernel-doc land now, and no cap, this one's actually cute and small.
β¨ NAME β¨
igc_read_xmdio_reg β read an XMDIO register π
literally what it says on the tin. you hand it an address, it goes and fetches the register value for you. slay. π¦
πΈ SYNOPSIS πΈ
s32 igc_read_xmdio_reg (struct igc_hw *hw , u16 addr , u8 dev_addr , u16
*data );
that's the whole signature, no notes π₯
π ARGUMENTS π
hwβ pointer to theHWstructure. it's your hardware handle, the main character of the whole call. π«Άaddrβ the XMDIO address to program. this is the where, and you gotta give it a real one, okay? πdev_addrβ device address to program. yep, a second address β think of it as which device on the bus we're talking to. πdataβ value to be read from the EMI address. it's a pointer, so the read result lands here and you get to go look at it. β
ngl the four args are just: which hw, which address, which device, and where do i put the answer. that's it. that's the whole vibe check. π
π¦ SEE ALSO π¦
Kernel file ./drivers/net/ethernet/intel/igc/igc_phy.c β that's where the source actually lives, iykyk π§
and now the whole friend group, in the order the page gives them, no skipping, periodt:
igc_check_reset_block(9)igc_get_phy_id(9)igc_phy_has_link(9)igc_power_up_phy_copper(9)igc_power_down_phy_copper(9)igc_check_downshift(9)igc_phy_hw_reset(9)igc_phy_setup_autoneg(9)igc_wait_autoneg(9)igc_copper_link_autoneg(9)igc_setup_copper_link(9)igc_read_phy_reg_mdic(9)igc_write_phy_reg_mdic(9)__igc_access_xmdio_reg(9)igc_write_xmdio_reg(9)igc_write_phy_reg_gpy(9)igc_read_phy_reg_gpy(9)igc_read_phy_fw_version(9)igc_force_speed_duplex(9)
lowercase tip from me to you:igc_write_xmdio_reg(9)is literally the sibling of this one β one reads, one writes.__igc_access_xmdio_reg(9)is the one hiding behind the register with double underscores, the little lowkey helper. π
okay that's the page!! shoutout to the kernel API manual, source <rainbow>./drivers/net/ethernet/intel/igc</rainbow>, dated October 2026 β mwah, love that for us ππ¦β¨ go read some registers bestie, you got this π«Άπ
π¦ 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