idpf_ptp_read_src_clk_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ idpf_ptp_read_src_clk_reg πŸ’…

okay so bestie, this is a page straight out of the Kernel API Manual β€” it's idpf_ptp_read_src_clk_reg(9) and it's literally just here to read the main timer value for you. that's the whole vibe. πŸ•°οΈβœ¨


🌸 NAME 🌸

idpf_ptp_read_src_clk_reg β€” Read the main timer value

like, the main timer. the big one. the headliner. she's the source clock and she knows it πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

int idpf_ptp_read_src_clk_reg (struct idpf_adapter *adapter , u64
*src_clk , struct ptp_system_timestamp *sts );

three args in, one int out. classic. no notes. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adapter β€” the driver specific private structure. it's the little home base for everything this driver needs, and yes you have to hand it over. πŸ™ˆ
  • src_clk β€” the returned main timer value, and it's in nanoseconds units. that's the whole point of the function, so like… don't forget to pass it. 😭
  • sts β€” optional parameter for holding a pair of system timestamps from the system clock. and listen β€” if you give it NULL, it will be ignored. completely. no cap. so it's optional optional. πŸ’€

πŸ”₯ RETURN πŸ”₯

  • on success you get the device clock time. slay. 🌟
  • otherwise you get -errno. not slay. πŸ˜”

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” they all live in the kernel file ./drivers/net/ethernet/intel/idpf/idpf_ptp.c:

go bother them next, iykyk πŸ’–


quick vibe check 🧚: if sts is NULL it gets ignored β€” that's it, that's the caveat, no dramatic warnings here.

and that's the page!! mwah πŸ’‹ this one comes to you from the kernel source tree at ./drivers/net/ethernet/intel/idpf, dated October 2026, and it's filed under idpf_ptp_read_src_clk_reg(9) β€” so if you ever forget where it came from, it's right there in the folder like a little name tag. ily, go read your timers responsibly πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from