ice_ptp_cfg_phy_interrupt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_ptp_cfg_phy_interrupt(9) β€” like, the PHY interrupt glow-up page

Hey bestie, welcome to the Kernel API Manual section 9 entry for ice_ptp_cfg_phy_interrupt. Yes it's a nine, yes it's kernel-internal, and yes I'm gonna make it make sense. 🫢


✨ NAME ✨

ice_ptp_cfg_phy_interrupt β€” the function that handles Configure PHY interrupt settings. That's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

int ice_ptp_cfg_phy_interrupt (struct ice_pf *pf , bool ena , u32
threshold );

Like β€” it returns an int, sits on a struct ice_pf *pf, and takes a bool plus a u32. Iconic signature, no notes. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pf β€” the PF private structure. Your whole personality lives in here. πŸ‘‘
  • ena β€” a bool value that enables or disables the interrupt. On or off, babe. That's it. ✨
  • threshold β€” the minimum number of packets at which the interrupt gets triggered. So it's giving "don't @ me until you've got enough packets". 🌈

πŸ’– DESCRIPTION πŸ’–

Okay so this is a utility function, right? Its whole job is to configure all the PHY interrupt settings β€” like, every single one β€” and that includes two big things:

  • whether the PHY interrupt is enabled (ena, bestie 🌸)
  • what threshold to use (threshold, obviously πŸ’…)

And there's a bonus move: it also configures The E82X timestamp owner to react to interrupts from all PHYs. Note the capital T in "The" β€” that's how you know it's important, no cap. πŸ‘‘


⭐ RETURN ⭐

  • 0 β€” on success. Slay. We love a zero. πŸŽ‰
  • -EOPNOTSUPP β€” when the PHY model is incorrect. πŸ™ˆ Wrong PHY, wrong party.
  • other error codes β€” when it failed to configure the PHY interrupt for E82X. 😭

πŸ”₯ SEE ALSO πŸ”₯

So there are, like, a LOT of siblings. Family reunion time, iykyk. Also go read the kernel file ./drivers/net/ethernet/intel/ice/ice_ptp.c β€” that's the source of truth, bestie. 🧚


Bestie heads-up: that -EOPNOTSUPP is not a vibe, it means the PHY model is straight-up incorrect, so don't go blaming yourself. πŸ’€

Okay that's the whole page, mwah. 😘 This came to you from the kernel source tree at ./drivers/net/ethernet/intel/ice, dated October 2026, in the Kernel API Manual, page ice_ptp_cfg_phy_interrupt(9) β€” go forth and configure those PHY interrupts, you absolute main character. πŸ¦‹πŸ’œ 🌈

πŸ“¦ where this page comes from