ice_read_64b_ptp_reg_eth56g(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_read_64b_ptp_reg_eth56g(9) β€” it's giving "Kernel API Manual" energy ✨

okay bestie, sit down, we're doing kernel-doc now 🫢 this one lives in the Kernel API Manual, and honestly? she's a lil PTP register reader and she ATE.


🌸 NAME 🌸

ice_read_64b_ptp_reg_eth56g β€” literally just read a 64bit value from PHY registers πŸ’– no cap, that's the whole gig.


✨ SYNOPSIS ✨

int ice_read_64b_ptp_reg_eth56g (struct ice_hw *hw , u8 port , u16
low_addr , u64 *val );

πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” pointer to the HW struct πŸ‘‘ (yes, the big one, hand it over)
  • port β€” the PHY port you're reading from πŸ¦‹
  • low_addr β€” offset of the lower register you're reading from πŸ“
  • val β€” on return, this holds the contents of the 64bit value from the PHY registers 🎁 (she gives back, that's main character energy)

πŸ’… DESCRIPTION πŸ’…

So here's the vibe: first we check if the caller has specified a known 40 bit register offset πŸ‘€ β€” like, is this even a real one, bestie? Then we read the two registers that go with a 40bit value and return it in the val pointer. Two registers, one value, zero drama. periodt πŸ’€βœ¨


πŸ”₯ RETURN πŸ”₯

  • 0 β€” success, we slayed 🌈
  • EINVAL β€” not a 64 bit register 😭 (wrong address, wrong vibe, iykyk)
  • other β€” failed to read from PHY πŸ’€ it happens to the best of us

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/net/ethernet/intel/ice/ice_ptp_hw.c β€” that's home base, go say hi 🏠

and now, the friend group. all of them. every single one. no one gets left out πŸ‘‘:


and that's the whole page bestie, mwah πŸ’– this lil guy ships out of ./drivers/net/ethernet/intel/ice and is dated October 2026 πŸŽ€ literally iconic, obsessed, go read some registers 🧚✨

πŸ“¦ where this page comes from