viortc_init_clock(9)
π viortc_init_clock(9) π
okay so we're in the Kernel API Manual, and today's main character is viortc_init_clock(9). Bestie, this one is short but it's literally the setup moment for the virtio_rtc clock's local representation. π
πΈ NAME πΈ
viortc_init_clock β init local representation of virtio_rtc clock
β¨ SYNOPSIS β¨
int viortc_init_clock (struct viortc_dev *viortc , u16 vio_clk_id );
π ARGUMENTS π
viortcβ device data. It's the device's whole situation, iykyk.vio_clk_idβ virtio_rtc clock id. The little ID that says which clock we're talking about. π°οΈ
π¦ DESCRIPTION π¦
Initializes PHC and/or RTC class device to represent virtio_rtc clock. That's the mission, fr fr β it's giving setup era, no cap. β¨
π CONTEXT π
Process context. That's it, that's the context. π«Ά
π₯ RETURN π₯
Zero on success, negative error code otherwise. So 0 is slay, and anything negative is an error code saying not slay. π
π SEE ALSO π
okay bestie, the lore is deep β go read:
- Kernel file:
./drivers/virtio/virtio_rtc_driver.c 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_clock_cap(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_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)
xoxo, your kernel bestie π β source/version: ./drivers/virtio Β· date: October 2026 Β· page: viortc_init_clock(9) bye bestie! π
π¦ 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