viortc_class_from_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME

okay so bestie, this is viortc_class_from_dev from the Kernel API Manual β€” the function whose whole job is: get the RTC class object from a virtio device. it’s giving β€œsmall helper, big kernel energy”, and we’re obsessed. πŸ’…βœ¨

✨ SYNOPSIS

the signature is literally this, no cap:

struct viortc_class * viortc_class_from_dev (struct device *dev );

🫢 ARGUMENTS

  • dev β€” virtio device. that’s the one and only argument, bestie. πŸŽ€

πŸ’… CONTEXT

Any context. that’s it, periodt β€” the page says any context, so that’s the vibe check. ✨

🌈 RETURN

RTC class object if available, ERR_PTR otherwise. no cap, that’s the whole return story. πŸ’–

πŸ‘‘ SEE ALSO

okay the SEE ALSO section is huge and iconic, and every single reference is coming with us:


and that’s the page, bestie! footer vibes are source/version ./drivers/virtio, date October 2026, page viortc_class_from_dev(9) β€” bye, go read the kernel docs responsibly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from