ptp_clock_index_by_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this page is ptp_clock_index_by_dev(9), and the manual name is Kernel API Manual β€” iconic. ptp_clock_index_by_dev is the helper that lets you obtain the device index of a PTP clock based on the PTP device. That's the whole assignment, and it ate. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

the signature is literally this, no edits:

int ptp_clock_index_by_dev (struct device *parent );

πŸ’… ARGUMENTS πŸ’…

  • parent β€” the parent device (PTP device) pointer of the PTP clock. it's giving β€œhere's the PTP device, now go get the index” energy. 🫢

πŸŽ€ RETURN πŸŽ€

on success you get the PHC index; on failure you get -1. fr fr, that's the whole return vibe. 🌸

🌈 SEE ALSO 🌈

like, go read these too, iykyk:


mwah πŸ’– cute little sign-off: this page's source/version is ./include/linux, the date is October 2026, and the manual page is ptp_clock_index_by_dev(9). slay. πŸŽ€

πŸ“¦ where this page comes from