alarm_clock_get_timespec(9)
π alarm_clock_get_timespec(9) β from the Kernel API Manual, bestie β¨
okay so welcome to the kernel API manual, we're doing alarm_clock_get_timespec(9) today and honestly? it's giving "small function, big responsibility" π
πΈ NAME πΈ
alarm_clock_get_timespec β literally the posix clock_get_timespec interface, no cap π
β¨ SYNOPSIS β¨
int alarm_clock_get_timespec (clockid_t which_clock , struct timespec64
*tp );
that's the whole thing. two args, one int back. iconic behavior π
π¦ ARGUMENTS π¦
which_clockβ theclockid_tclockid, like, which clock are we talking about here π°οΈtpβ thestruct timespec64that we're gonna fill. it's the timespec. it gets filled. that's the job π«Ά
π DESCRIPTION π
okay so here's the tea: this one hands you the underlying alarm base time in a task's time namespace β¨ that's it, that's the whole vibe. no extra lore, no secret side quests β it just gives you the base time and you go off and live your life π
π₯ SEE ALSO π₯
the whole friend group, in order, exactly as the kernel file ./kernel/time/alarmtimer.c lists them π
struct alarm_base(9)alarmtimer_get_rtcdev(9)alarmtimer_enqueue(9)alarmtimer_dequeue(9)alarmtimer_fired(9)alarmtimer_suspend(9)alarm_init(9)alarm_start_timer(9)alarm_try_to_cancel(9)alarm_cancel(9)clock2alarm(9)alarm_handle_timer(9)alarm_timer_rearm(9)alarm_timer_forward(9)alarm_timer_remaining(9)alarm_timer_try_to_cancel(9)alarm_timer_wait_running(9)alarm_timer_arm(9)alarm_clock_getres(9)alarm_clock_get_ktime(9)alarm_timer_create(9)alarmtimer_nsleep_wakeup(9)alarmtimer_do_nsleep(9)alarm_timer_nsleep_restart(9)alarm_timer_nsleep(9)alarmtimer_init(9)
like, talk about a full roster π go read them all, fr fr, iykyk π
and that's the page!! brought to you by the ./kernel/time directory, dated October 2026, source version vibes and all β mwah, stan this manpage, 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