viortc_alloc_vq_bufs(9)
π viortc_alloc_vq_bufs(9) β like, the alarmq buffer allocator π
okay bestie, welcome to the Kernel API Manual β¨ this one's about viortc_alloc_vq_bufs, and yes the name is a mouthful but it's literally just "allocate alarmq buffers" β that's the whole vibe, the whole job, the whole main character moment π
β¨ NAME β¨
viortc_alloc_vq_bufs β allocate alarmq buffers π¦
πΈ SYNOPSIS πΈ
int viortc_alloc_vq_bufs (struct viortc_dev *viortc , unsigned int
num_elems , u32 buf_cap );
likeβ¦ it takes three things and gives you back an int. that's it. that's the whole signature, no cap π
π ARGUMENTS π
viortcβ the device data. it's your device, yourstruct viortc_dev *, your little guy π«Άnum_elemsβ the # of buffers. how many bestie. how many buffers are we making β¨buf_capβ per-buffer device-writable bytes. so, capacity, but make it per-buffer, and make it device-writable π
π§ CONTEXT π§
Process context. periodt. that's the whole context section, she's a short queen π
ngl do not try to be cute and call this from somewhere spicy β it says process context, so that's the assignment, no notes π
β RETURN β
Zero on success, negative error code otherwise. like every good kernel function β 0 means slay, anything negative means it's giving error π₯
π SEE ALSO π
buckle up bestie, this list is long β but every single one of these is iconic in her own right, so we're listing all of them, fr fr:
- 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_init_clock(9)viortc_clocks_deinit(9)viortc_clocks_init(9)viortc_populate_vq(9)viortc_init_vqs(9)viortc_probe(9)viortc_remove(9)
and that's the page!! π this little icon lives under ./drivers/virtio and she's dated October 2026 β mwah, go read the other ones, iykyk π
ππ¦
π¦ 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