viortc_clas...m_irq_enable(9)
β¨ viortc_class_alarm_irq_enable(9) β¨
okay so this is a page from the Kernel API Manual, section 9 β yes, that section 9, the kernel-functions one π«Ά β and it's all about one tiny little function. don't let the giant name scare you, bestie, it's literally just "turn the alarm interrupt on or off" and honestly? iconic behaviour π
π NAME π
viortc_class_alarm_irq_enable β the RTC class op alarm_irq_enable. that's it, that's the whole vibe. it's the class operation that flips the alarm IRQ β¨
πΈ SYNOPSIS πΈ
int viortc_class_alarm_irq_enable (struct device *dev , unsigned int
enabled );
like, look at her. gorgeous. takes two things, gives you back an int π (yes, the spacing is exactly like that, i don't make the rules π)
π¦ ARGUMENTS π¦
devβ the virtio device. this is your main character right here π the virtio device you're doing the thing to.enabledβ enable or disable the alarm IRQ. that's the whole switch, bestie: on mode or off mode π
β CONTEXT β
Process context. so like, normal-process vibes only. you're not in some weird interrupt place, you're just... in a process, doing your thing π§
π RETURN π
- Zero on success β slay, it worked π
- negative error code otherwise β not slay, something went wrong π (negative, so you will notice)
π₯ SEE ALSO π₯
literally all her friends, no cap:
- the kernel file
./drivers/virtio/virtio_rtc_class.cβ that's where she lives π struct viortc_class(9)viortc_class_get_locked(9)viortc_class_read_time(9)viortc_class_read_alarm(9)viortc_class_set_alarm(9)viortc_class_alarm(9)viortc_class_stop(9)viortc_class_register(9)viortc_class_init(9)
fr fr read the whole squad, they all hang out together and you'll understand this one way better if you do π«Ά
okay that's the page!! sourced from ./drivers/virtio, dated October 2026, and the manual name is Kernel API Manual in case you forgot already π mwah, go forth and enable some alarm IRQs responsibly πβ¨π
π¦ 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