viortc_class_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a struct 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:


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