ptp_clock_event(9)
π ptp_clock_event(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to the Kernel API Manual β¨ and today's main character is ptp_clock_event β no cap, this is the little function that tells the PTP layer "hey, something happened!!" π¦
πΈ NAME πΈ
ptp_clock_event β notify the PTP layer about an event, like literally just deliver the news π£
β¨ SYNOPSIS β¨
void ptp_clock_event (struct ptp_clock *ptp , struct ptp_clock_event
*event );
that's it, that's the whole vibe check π
a void return, so it gives you nothing back and honestly? iconic behaviour π
π ARGUMENTS π
ptpβ the clock you got fromptp_clock_register. yes, THAT clock. the one you already registered. don't show up with some random clock, i'm begging πeventβ the message structure describing the event. it's giving "the tea, in struct form" π β it literally describes what went down.
π SEE ALSO π
β¨ the extended universe, bestie. every single one of these is linked and every single one matters β¨
- Kernel file
./include/linux/ptp_clock_kernel.hstructptp_clock_request(9)β open it, it's important, iykyk π₯ - 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_index(9)ptp_clock_index_by_of_node(9)ptp_clock_index_by_dev(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)
β okay that's the page, you ate that honestly β
and a lil sign-off to match the footer: this one lives under ./include/linux, stamped October 2026, and it's filed under ptp_clock_event(9) so you can find it again when you inevitably forget π«Άπ
π¦ 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