viortc_class_init(9)
π viortc_class_init(9) π
Okay bestie, welcome to the Kernel API Manual page for viortc_class_init(9) β yes, the manual name is right there, we're being efficient. This one is all about setting up the RTC class wrapper and device. Let's get into it, no cap. β¨
β¨ NAME β¨
viortc_class_init β init RTC class wrapper and device. That's the whole assignment, and it ate. π
πΈ SYNOPSIS πΈ
struct viortc_class * viortc_class_init (struct viortc_dev *viortc , u16
vio_clk_id , bool have_alarm , struct device *parent_dev );
π ARGUMENTS π
viortcβ device data. The device's whole lore, basically. π«Άvio_clk_idβ virtio_rtc clock id. Yep, the virtio_rtc clock id, exactly as advertised. π°οΈhave_alarmβ have alarm feature. Aboolsaying whether the alarm feature is, like, present. π¨parent_devβ virtio device. The parent virtio device, main character energy. π
π CONTEXT π
Process context. That's it. Run it in process context, bestie. π§
π¦ RETURN π¦
RTC class wrapper on success, ERR_PTR otherwise. So: slay on success, ERR_PTR when it's not giving. π
π₯ SEE ALSO π₯
Kernel file ./drivers/virtio/virtio_rtc_class.c, plus these absolute icons:
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_irq_enable(9)viortc_class_alarm(9)viortc_class_stop(9)viortc_class_register(9)
And that's the page! Signing off with source/version ./drivers/virtio, dated October 2026, for viortc_class_init(9). Stay iconic, kernel bestie ππβ¨
π¦ 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