fec_ptp_gettime(9)
π 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β atimespecstructure 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 π
- Kernel file
./drivers/net/ethernet/freescale/fec_ptp.c fec_ptp_read(9)fec_ptp_enable_pps(9)fec_ptp_start_cyclecounter(9)fec_ptp_adjfine(9)fec_ptp_adjtime(9)fec_ptp_settime(9)fec_ptp_enable(9)fec_ptp_init(9)
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
- 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