fec_ptp_gettime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fec_ptp_gettime(9) β€” Kernel API Manual

okay bestie, welcome to fec_ptp_gettime, straight out of the Kernel API Manual ✨ this one's a little function from the Freescale FEC PTP world and she's honestly kind of a vibe. let's get into it 🫢


🌸 NAME 🌸

fec_ptp_gettime -

so like… the description is literally empty. not me getting a NAME section with nothing after the dash 😭 that's it, that's the entry. no cap, there's genuinely no blurb here. iconic in a minimal way tbh πŸ’€


✨ SYNOPSIS ✨

int fec_ptp_gettime (struct ptp_clock_info *ptp , struct timespec64 *ts
);

returns an int, takes a struct ptp_clock_info *ptp and a struct timespec64 *ts. that's the whole signature, slay πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ptp β€” the ptp clock structure. that's the PT P clock babe, she's holding the info πŸ’–
  • ts β€” a timespec structure to hold the current time value. this is where the time goes, it's giving little time container πŸŽ€

πŸ’– DESCRIPTION πŸ’–

okay so what she does: reads the timecounter and returns the correct value in ns β€” nanoseconds, bestie β€” and she does it after converting it into a struct timespec. so: read the counter πŸ‘‰ get the ns value right πŸ‘‰ convert to struct timespec πŸ‘‰ done. lowkey clean, highkey useful ✨


🌈 SEE ALSO 🌈

like a whole friend group of fec_ptp functions, and they all ate πŸ’…


and that's the page!! this one lives at ./drivers/net/ethernet/freescale and it's dated October 2026 β€” mwah, logged and timestamped, periodt πŸ§šπŸ’œ

πŸ“¦ where this page comes from