ptp_find_pin_unlocked(9)
π ptp_find_pin_unlocked(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual page for ptp_find_pin_unlocked(9) β¨ This one is a tiny wrapper situation, and the vibe is very βread the description before you call meβ π
πΈ NAME πΈ
ptp_find_pin_unlocked β wrapper for ptp_find_pin()
π¦ SYNOPSIS π¦
int ptp_find_pin_unlocked (struct ptp_clock *ptp , enum ptp_pin_function
func , unsigned int chan );
π ARGUMENTS π
ptpβ the clock you got fromptp_clock_register. Thatβs your clock bestie π°οΈfuncβ one of theptp_pin_functionenumerated values. Pick from the enum, no freestyle πchanβ the particular functional channel to find. The exact channel, not just a vibe π
β¨ DESCRIPTION β¨
This function acquires the ptp_clock::pincfg_mux mutex before invoking ptp_find_pin π
But listen: instead of using this function, drivers should most likely call ptp_find_pin directly from their ptp_clock_info::enable method. Like, thatβs the recommended move, no cap π
π₯ RETURN π₯
Pin index in the range of zero to ptp_clock_caps.n_pins - 1, or -1 if the auxiliary function cannot be found π«Ά
π SEE ALSO π
Peep the kernel file ./include/linux/ptp_clock_kernel.h and this whole reference crew:
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_schedule_worker(9)ptp_cancel_worker_sync(9)ptp_get_vclocks_index(9)ptp_convert_timestamp(9)
mwah π cute little sign-off time: this pageβs source/version is ./include/linux, the date is October 2026, and the manual page is ptp_find_pin_unlocked(9). bye bestie, go find those pins ππ¦
π¦ 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