ntp_get_next_leap(9)
β¨ ntp_get_next_leap(9) β¨
okay so real talk bestie, this one lives in the Kernel API Manual and it's genuinely such a little icon. it's giving "tiny function, huge responsibility" and i'm obsessed π
π NAME π
ntp_get_next_leap β returns the next leap second in CLOCK_REALTIME as a ktime_t. no cap, that's literally the whole vibe β¨
π¦ SYNOPSIS π¦
ktime_t ntp_get_next_leap (unsigned int tkid );
πΈ ARGUMENTS πΈ
tkidβ the Timekeeper ID π°οΈ like, which timekeeper are we even asking here, bestie
π RETURN π
so here's the tea π if tkid == TIMEKEEPER_CORE, this hands you the time of the next leap second against CLOCK_REALTIME, in a ktime_t format β but only if a leap second is actually pending, iykyk. otherwise you get KTIME_MAX. that's it, that's the whole situation π
π₯ SEE ALSO π₯
- Kernel file
./kernel/time/ntp.c struct ntp_data(9)pps_clear(9)ntp_clear(9)ntp_synced(9)
go read those too, they're all main character energy in their own way π«Ά
ngl bestie, remember the return value depends ontkidbeingTIMEKEEPER_COREand a leap second being pending β don't be out here assuming you'll get a real timestamp every time π
kisses and jump cuts, this page came to you from ./kernel/time, October 2026, and it's called ntp_get_next_leap(9) β slay, 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