viortc_class_register(9)
β¨ viortc_class_register(9) β¨
okay bestie, welcome to the Kernel API Manual π this is viortc_class_register(9), and it's literally here to register an RTC class device. no cap.
π NAME π
viortc_class_register β register RTC class device. that's the whole assignment: get that RTC class device registered β¨
π SYNOPSIS π
int viortc_class_register (struct viortc_class *viortc_class );
π§ ARGUMENTS π§
viortc_classβ the RTC class wrapper. yes bestie, it's astruct viortc_class *, and it's the thing you're handing over π«Ά
πΈ CONTEXT πΈ
Process context. so like, you're calling this from process context, not some wild interrupt chaos, iykyk.
β RETURN β
Zero on success, negative error code otherwise. slay on 0; if you get a negative number back, that's the error code saying "not today" π
π¦ SEE ALSO π¦
The kernel file is ./drivers/virtio/virtio_rtc_class.c, and the whole friend group is:
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_init(9)
mwah π cute little sign-off: source/version stamp is ./drivers/virtio, the date is October 2026, and the manual title is still viortc_class_register(9). 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