viortc_class_get_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… viortc_class_get_locked(9)

okay so bestie, welcome to the Kernel API Manual ✨ you're literally reading viortc_class_get_locked(9) and honestly? she's a little baddie with one job. let's get into it πŸŽ€


✨ NAME ✨

viortc_class_get_locked β€” grab the RTC class wrapper, but only if the ops are allowed πŸ‘€ no cap, that's the whole vibe.


🌸 SYNOPSIS 🌸

struct viortc_class * viortc_class_get_locked (struct device *dev );

that's it. that's the whole function signature. short king energy πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the virtio device. yeah. that one. the device. give her the device πŸ’–

🧚 DESCRIPTION 🧚

so like, this function gets the RTC class wrapper from the virtio device β€” but only if it's actually available and the ops are allowed βœ…. both conditions, bestie, it's giving "you need to meet the requirements" energy. if either one's not happening, no wrapper for you πŸ™ˆ


πŸ”₯ CONTEXT πŸ”₯

⚠️ caller must hold rtc_lock. this is not a suggestion, this is the law πŸ’€ lock it up before you call, fr fr.

⭐ RETURN ⭐

  • the RTC class wrapper β€” when it's available and ops are allowed 🫢 slay
  • ERR_PTR β€” otherwise 😭 that's the whole deal, no in-between

🌈 SEE ALSO 🌈

the whole friend group honestly πŸ’œ go read them all, iykyk


and that's the page!! πŸ“ this iconic lil entry lives in ./drivers/virtio and the version vibes are dated October 2026 β€” mwah, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from