alarmtimer_get_rtcdev(9)
β¨ alarmtimer_get_rtcdev(9) β¨
okay so bestie, we're in the Kernel API Manual today and this one is a tiny little function but it's lowkey important, iykyk π
πΈ NAME πΈ
alarmtimer_get_rtcdev β returns the selected rtcdevice π
like, the whole job. one line. she's concise. we respect it.
π¦ SYNOPSIS π¦
struct rtc_device * alarmtimer_get_rtcdev (void );
that's it, that's the whole signature. look at her go π
π ARGUMENTS π
voidβ no arguments. none. zero. the void is voiding π«Ά
ngl it's kind of iconic that there's an arguments section for literally no arguments, but we keep it because documentation is documentation, periodt.
π DESCRIPTION π
so what does she actually do? she returns the rtc device to use for wakealarms π₯
that's the whole vibe. alarmtimer_get_rtcdev hands you back the rtc device that's been picked out for wakealarms β the alarm's main character device, fr fr π
β SEE ALSO β
this is the part where the page goes absolutely feral and lists the entire friend group ππ all of these live in the kernel file ./kernel/time/alarmtimer.c:
struct alarm_base(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_timespec(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 okayyy, that's a whole squad π³β¨ go read them too, they're all π§ slay π§
and that's the page, bestie!! you ate that. no cap. πβ¨ππ¦πΈπ π«Ά go forth and get that rtc device π
(this one's from ./kernel/time, dated October 2026, and it's alarmtimer_get_rtcdev(9) β mwah π)
π¦ 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