dap8211r_read_ext(9)
π NAME π
dap8211r_read_ext β bestie, this is the one that reads an extended register β¨
okay so real quick, we're in the Kernel API Manual (section 9, kernel-space girlies only π), and this little icon does exactly what it says on the tin.
πΈ SYNOPSIS πΈ
int dap8211r_read_ext (struct phy_device *phydev , u16 reg );
that's it. that's the whole vibe check. two arguments, returns an int, slay π
π¦ ARGUMENTS π¦
phydevβ the PHY device structure π«Ά like, the actual device you're poking atregβ the extended register address π₯ which register we're reading, bestie
β¨ DESCRIPTION β¨
okay so here's the tea β β this function reads a PHY extended register, and it does it using the indirect access method. not direct. indirect. iykyk π«
β οΈ no cap, this part matters: the caller must hold the MDIO bus lock. like, must must. not "should", not "probably", not "it'll be fine". hold the lock or you're gonna have a bad time ππ
π RETURN π
- the register value on success π (that's the good ending, we love to see it)
- or a negative error code π (the flop era ending, happens to the best of us)
π SEE ALSO π
- the kernel file
./drivers/net/phy/dap8211r.cπ β that's where the whole family lives dap8211r_modify_ext(9)β the sibling that changes stuff, main character energy fr frdap8211r_config_init(9)β the β¨ setup β¨ one
and that's the page, bestie! π this came to you straight out of the ./drivers/net/phy directory, dated October 2026, and it's giving "kernel API manual, but make it cute" π§β go read some extended registers (with the lock held, obviously π) π
π¦ 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