ice_ptp_clock_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hey bestie πŸ’– you're reading ice_ptp_clock_index(9) from the Kernel API Manual, and it's giving short-but-iconic function energy. Let's get into it, no cap.

πŸ’– NAME πŸ’–

ice_ptp_clock_index β€” Get the PTP clock index for this device.

That's the whole assignment, fr fr: this function is the one holding the PTP clock index answer for the device. Periodt.

✨ SYNOPSIS ✨

Here's the signature, bestie β€” copy it exactly, no autocorrect:

int ice_ptp_clock_index (struct ice_pf *pf );

The way this reads: it returns int, it's called ice_ptp_clock_index, and it takes a struct ice_pf * named pf. Clean, simple, slay.

πŸŽ€ ARGUMENTS πŸŽ€

  • pf β€” board private structure. That's the board's private state situation, and in the synopsis it's typed as struct ice_pf *. Nothing else in the argument list β€” just pf doing its main character thing. πŸ’…

πŸ”₯ RETURN πŸ”₯

It returns the PTP clock index associated with this PF, or -1 if no PTP clock is associated.

That's the whole return story: a real index when there's a PTP clock associated with this PF, and -1 when there isn't. No cap, that -1 matters. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file, front and center: ./drivers/net/ethernet/intel/ice/ice_ptp.c.

And here's the whole extended ice-PTP friend group β€” all the refs, zero skips:

Okay bye bestie 🫢 final footer vibe: source/version spot ./drivers/net/ethernet/intel/ice, dated October 2026, page ice_ptp_clock_index(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from