dap8211r_read_ext(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 at
  • reg β€” 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 fr
  • dap8211r_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