VIRTIO_BLK(4)
VIRTIO_BLK(4) π
okay so welcome to the Kernel Interfaces Manual page for VIRTIO_BLK(4), bestie β yes, we're making block devices make sense and yes it's gonna slay π
NAME πΈ
virtio_blk β the VirtIO Block driver, periodt. That's the name, that's the vibe, that's the whole assignment π
SYNOPSIS β¨
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device virtio_blk
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
virtio_blk_load="YES"
DESCRIPTION π¦
The virtio_blk device driver provides support for VirtIO block devices. That's literally the tea: it's the driver handling VirtIO block devices for you. Iconic behavior, no notes π
LOADER TUNABLES π
Tunables can be set at the loader(8) prompt before booting the kernel or stored in loader.conf(5). Very demure, very mindful β¨
hw.vtblk.no_ident/hw.vtblk.X.no_identβ these tunables disable retrieving the device identification string from the hypervisor either globally or per-device. The default value is0.hw.vtblk.writecache_mode/hw.vtblk.X.writecache_modeβ these tunables determine the write cache mode globally or per-device. The mode can only be changed if theConfigWCEfeature is negotiated. Set to0for writethrough mode,1for writeback mode, and-1to leave it as-is. The default value is to leave as-is π
bestie, the -1 is literally "leave it alone" energy. respect the default π
SYSCTL VARIABLES π
The following variables are available as sysctl(8) variables. Get into it β
dev.vtblk.X.writecache_modeβ the write cache mode of the device can be either writethrough (0) or writeback (1). If theConfigWCEfeature is negotiated, the write cache mode can be toggled between writethrough and writeback.
SEE ALSO π₯
HISTORY π
The virtio_blk driver was written by Bryan Venteicher <bryanv@FreeBSD.org>. It first appeared in FreeBSD 9.0. Iconic behavior, fr fr π«Ά
k bye bestie π β this slay page is from Debian, dated July 2, 2013, and it's VIRTIO_BLK(4). Mwah πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2011 Bryan Venteicher
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms