ptp_clock_index_by_dev(9)
β¨ 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:
- Kernel file
./include/linux/ptp_clock_kernel.h struct ptp_clock_request(9)struct ptp_system_timestamp(9)struct ptp_clock_info(9)struct ptp_clock_event(9)scaled_ppm_to_ppb(9)diff_by_scaled_ppm(9)adjust_by_scaled_ppm(9)ptp_clock_register(9)ptp_clock_unregister(9)ptp_clock_event(9)ptp_clock_index(9)ptp_clock_index_by_of_node(9)ptp_find_pin(9)ptp_find_pin_unlocked(9)ptp_schedule_worker(9)ptp_cancel_worker_sync(9)ptp_get_vclocks_index(9)ptp_convert_timestamp(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms