cavium_ptp_settime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cavium_ptp_settime(9) πŸ’–

okay so real talk, bestie β€” you're reading a page out of the Kernel API Manual, and it's all about cavium_ptp_settime. she's a little function with one job and she does it. let's get into it ✨


🌸 NAME 🌸

cavium_ptp_settime β€” Set hardware clock time. Reset adjustment πŸ•°οΈβœ¨

like, she sets the hardware clock and resets the adjustment. two things. one function. main character energy fr fr πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int cavium_ptp_settime (struct ptp_clock_info *ptp_info , const struct timespec64 *ts );

look at her go 🫢 returns an int, takes two pointers, zero drama.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ptp_info β€” PTP clock info πŸ‘‘ this is the clock's little info card, she needs it to know who she is
  • ts β€” timespec ⏱️ the actual time value you're handing over, no cap
ngl both of these are pointers and neither of them is optional in spirit, so don't be out here passing nonsense πŸ™ˆ

⭐ SEE ALSO ⭐

ok so if you wanna go deeper (and you should, iykyk), the kernel file lives right here:

./drivers/net/ethernet/cavium/common/cavium_ptp.c

and these are her besties, her group chat, her ride-or-dies 🌈:

go read all of them, you'll be obsessed πŸ’œ


~ cute little sign-off ~ 🧚

this iconic lil page comes from ./drivers/net/ethernet/cavium/... and it's dated October 2026, and yeah β€” it's cavium_ptp_settime(9) all the way down. slay, bye bestie πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from