VIRTIO_BLK(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

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 is 0.
  • 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 the ConfigWCE feature is negotiated. Set to 0 for writethrough mode, 1 for writeback mode, and -1 to 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 the ConfigWCE feature 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