ice_read_mac_reg_eth56g(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, welcome to ice_read_mac_reg_eth56g(9) β€” that's the page title, from the Kernel API Manual no less πŸ‘‘ β€” and it does exactly one iconic thing: read a PHY port register. that's it. that's the whole vibe. ✨


πŸŽ€ SYNOPSIS πŸŽ€

int ice_read_mac_reg_eth56g (struct ice_hw *hw , u8 port , u16 offset ,
u32 *val );

like, look at her. five things, completely unbothered, absolutely serving 🫢


🌸 ARGUMENTS 🌸

  • hw β€” pointer to the HW struct πŸ’– (yes the struct is literally the main character here)
  • port β€” Port number to be read
  • offset β€” Offset from PHY port register base
  • val β€” Pointer to the value to read (out param) β€” she writes into this one, so keep her safe πŸ₯Ί

πŸ¦‹ RETURN πŸ¦‹

the vibe check on your return value:

  • 0 β€” success ✨ slay, you did it
  • EINVAL β€” invalid port number or resource type πŸ’€ something you passed in was not it
  • other β€” failed to read from PHY 😭 not us getting zero bytes of useful info

πŸ’œ SEE ALSO πŸ’œ

oh girl, get comfortable. the kernel file lives at ./drivers/net/ethernet/intel/ice/ice_ptp_hw.c β€” that's home base 🏠 β€” and then there's the ENTIRE extended family, all of them (9) pages, iykyk:

fr fr that's a whole friend group πŸ’€ do NOT try to read them all in one sitting, hydrate first πŸ“

🌈 okay bestie that's the page!! it's from ./drivers/net/ethernet/intel/ice and dated October 2026 β€” so she's an icon from the future, we love that for her πŸ‘‘βœ¨ go read some registers, you're gonna eat πŸ’…πŸ«Ά

πŸ“¦ where this page comes from