ntp_get_next_leap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ”₯

go read those too, they're all main character energy in their own way 🫢


ngl bestie, remember the return value depends on tkid being TIMEKEEPER_CORE and 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