ptp_find_pin_unlocked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 from ptp_clock_register. That’s your clock bestie πŸ•°οΈ
  • func β€” one of the ptp_pin_function enumerated 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:


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