rtc_timer_enqueue(9)
π rtc_timer_enqueue(9)
okay so bestie, welcome to the Kernel API Manual β specifically the page for rtc_timer_enqueue(9), aka the little function that shoves your timer into the queue. let's get into it β¨
πΈ NAME πΈ
rtc_timer_enqueue β adds a rtc_timer to the rtc_device timerqueue π
β¨ SYNOPSIS β¨
int rtc_timer_enqueue (struct rtc_device *rtc , struct rtc_timer *timer
);
like, it returns an int, takes a struct rtc_device *rtc, and a struct rtc_timer *timer. that's the whole vibe fr fr π«Ά
π¦ ARGUMENTS π¦
rtcβ the rtc device, obviously. main character of this call πtimerβ the timer being added. this is the one we're enqueueing, no cap.
π DESCRIPTION π
So what it does: it enqueues a timer onto the rtc device's timerqueue, and sets the next alarm event appropriately. like, it handles the whole scheduling situation for you, iconic behavior honestly π
It also sets the enabled bit on the added timer. so once it's in, it's in β enabled and ready to go β
β οΈ big one bestie: you must holdops_lockfor proper serialization of the timerqueue. noops_lock, no proper serialization. this is not a drill π
π SEE ALSO π
Kernel file ./drivers/rtc/interface.c, plus all these besties:
rtc_read_next_alarm(9)rtc_handle_legacy_irq(9)rtc_aie_update_irq(9)rtc_uie_update_irq(9)rtc_pie_update_irq(9)rtc_update_irq(9)rtc_irq_set_state(9)rtc_irq_set_freq(9)rtc_timer_remove(9)rtc_timer_do_work(9)rtc_read_offset(9)rtc_set_offset(9)
and that's the page!! π this little gem lives in ./drivers/rtc, dated October 2026, straight from the Kernel API Manual. go forth and enqueue responsibly, 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