ptp_get_vclocks_index(9)
π ptp_get_vclocks_index(9) β from the Kernel API Manual, bestie π«Ά
okay so real talk, we're in the Kernel API Manual today and this page is literally called ptp_get_vclocks_index. yes it's a mouthful, no you don't have to say it out loud at parties. it's giving "tiny function, big responsibilities" energy and honestly? we love her for it. πΈ
β¨ NAME β¨
ptp_get_vclocks_index β grabs, like, all the vclocks index on pclock. and heads up bestie, the caller is responsible to free the memory of vclock_index (yes, YOU, the caller β no one else is doing it for you π).
π¦ SYNOPSIS π¦
int ptp_get_vclocks_index (int pclock_index , int **vclock_index );
π ARGUMENTS π
pclock_indexβ the phc index of the ptp pclock. that's it, that's the girl. πvclock_indexβ a pointer to pointer of vclock index. double pointer behavior, double pointer drama, we stan. β¨
π DESCRIPTION π
it returns the number of vclocks. that's the whole description. short, sweet, main character energy fr fr. π
π₯ SEE ALSO π₯
so here's the whole friend group, no cap β starting with the Kernel file ./include/linux/ptp_clock_kernel.h and then every single one of these:
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_clock_index_by_dev(9)ptp_find_pin(9)ptp_find_pin_unlocked(9)ptp_schedule_worker(9)ptp_cancel_worker_sync(9)ptp_convert_timestamp(9)
(and yes, ptp_clock_event(9) shows up in that list β twice-ish energy is just part of the source material, we don't rewrite the guest list π)
π«Ά friendly reminder from your favorite kernel bestie: vclock_index memory? yours to free. not mine. not the kernel's. yours. don't leave her hanging.
and that's the whole page!! this one came from ./include/linux, dated October 2026, in the Kernel API Manual. mwah, go free that memory, ily, bye πππ¦
π¦ 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