viortc_clock_cap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ viortc_clock_cap(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for viortc_clock_cap, and honestly? she's a little wrapper function doing her thing and we're gonna appreciate her. πŸ’…


✨ NAME ✨

viortc_clock_cap β€” the VIRTIO_RTC_REQ_CLOCK_CAP wrapper. that's it, that's her whole job, girl is a wrapper and she's thriving 🫢


🌸 SYNOPSIS 🌸

int viortc_clock_cap (struct viortc_dev *viortc , u16 vio_clk_id , u8
*type , u8 *leap_second_smearing , u8 *flags );

πŸ’– ARGUMENTS πŸ’–

okay so let's meet the cast πŸ‘‘

  • viortc β€” the device data. this is, like, her whole world.
  • vio_clk_id β€” the virtio_rtc clock id. yes it's a u16, no we don't ask questions.
  • type β€” the virtio_rtc clock type.
  • leap_second_smearing β€” the virtio_rtc smearing variant. iconic name, no notes, it's giving astronomy degree πŸͺ
  • flags β€” struct virtio_rtc_resp_clock_cap.flags. literally the flags field of that struct, exactly, copy-paste that into your brain.

πŸ¦‹ CONTEXT πŸ¦‹

Process context. that's the whole vibe. no softirq shenanigans, no interrupt energy, just process context, slay ✨


πŸ’€ RETURN πŸ’€

Zero on success, negative error code otherwise. so like, check your return value bestie, zero is the good one, negatives are the "oop" ones 😭


🌈 SEE ALSO 🌈

lowkey this list is long but we do NOT skip it, every single one of these gets her moment πŸ’œ

Kernel file ./drivers/virtio/virtio_rtc_driver.c, plus: struct viortc_vq(9), struct viortc_dev(9), struct viortc_msg(9), viortc_class_from_dev(9), viortc_alarms_supported(9), viortc_feed_vq(9), viortc_msg_init(9), viortc_msg_release(9), viortc_do_cb(9), viortc_requestq_hdlr(9), viortc_cb_requestq(9), viortc_alarmq_hdlr(9), viortc_cb_alarmq(9), viortc_get_resp_errno(9), viortc_msg_xfer(9), VIORTC_DECLARE_MSG_HDL_ONSTACK(9), VIORTC_MSG(9), VIORTC_MSG_INIT(9), VIORTC_MSG_WRITE(9), VIORTC_MSG_READ(9), viortc_read(9), viortc_read_cross(9), viortc_cfg(9), viortc_cross_cap(9), viortc_read_alarm(9), viortc_set_alarm(9), viortc_set_alarm_enabled(9), viortc_init_rtc_class_clock(9), viortc_init_ptp_clock(9), viortc_init_clock(9), viortc_clocks_deinit(9), viortc_clocks_init(9), viortc_populate_vq(9), viortc_alloc_vq_bufs(9), viortc_init_vqs(9), viortc_probe(9), viortc_remove(9).


okay that's the page!! mwah πŸ’‹ this one came out of ./drivers/virtio and she's dated October 2026 β€” go read the rest of the set, ily, bye πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from