driverctl(8)
π¦ driverctl(8) β the device driver control utility π¦
okay bestie, welcome to driverctl, live from the System Manager's Manual (section 8, where the real ones live) π
β¨ NAME β¨
driverctl β device driver control utility. that's it, that's the name, and it's iconic.
πΈ SYNOPSIS πΈ
driverctl [OPTIONS] COMMAND [DEVICE [DRIVER]]
π DESCRIPTION π
okay so, driverctl is your girl for manipulating and inspecting the system device driver choices. like, you wanna know who's driving what, or you wanna change who's driving what? she's got you. π«Ά
here's the tea: devices are normally assigned to their sole designated kernel driver by default. but ngl, sometimes you do wanna override that default β like when you're trying to run an older driver to work around a regression in a driver, or you wanna try an experimental alternative driver. living on the edge, love that for you. π₯
another super common use-case? pass-through drivers and driver stubs so userspace can drive the device instead β think virtualization, iykyk. π
the way that driverctl integrates with udev to support overriding driver selection for both cold- and hotplugged devices from the moment of discovery... obsessed. she can also change already-assigned drivers, assuming they're not in use by the system. and the driver overrides she creates are persistent across system reboots by default. no cap. β¨
π OPTIONS π
the following options are understood (yes, all of them, we're not skipping a single one):
-b|--bus <BUS>β operate on devices on a given bus, likepciorusb. the available options depend on your system hardware and kernel β for example, as of kernel4.6.7the USB subsystem does not yet supportdriver_override. by default thepcibus is used. π--debug|--verbose|-vβ verbose mode, aka she gives you more detailed information during operation. she's a yapper, we love her. π£οΈ-h|--helpβ output usage information. help is always free bestie. π--noprobeβ do not (re)probe the device after changing the driver. this one applies to the*-overridecommands. π--nosaveβ do not set/unset permanently. this one applies toset-overrideandunset-overridecommands. π
π COMMANDS π
the following commands are understood:
set-override <DEVICE> <DRIVER>β set a driver override for a device. by default the current driver is unbound from the device, the new driver is loaded into kernel, bound, and the override is saved permanently. as a special case, specifying"none"as the driver will prevent any driver from being bound to the device until the override is removed. dramatic? maybe. useful? absolutely. πunset-override <DEVICE>β unset a driver override for a device. by default the current driver is unbound from the device, the default driver of the device is bound, and the override is permanently removed. it's giving closure. π¦load-override <DEVICE>β load a previously set driver override for device from disk. there's usually no need to invoke this manually β this command exists mostly for udev interaction. so like, it's a backstage-pass command. ποΈlist-devices [DEVICETYPE]β list currently plugged, overridable system devices on a bus (pciby default), along with their current drivers. any overridden drivers are marked with[*]. with-voptions, additional device description from udev database is shown to help identify devices. you can also limit displayed devices by specifying a device type as an optional argument β for example"network"to list only network devices. πlist-overrides [DEVICETYPE]β list currently overridden devices on a bus (pciby default). with-voptions, additional device description from udev database is shown to help identify devices. and yep, you can limit displayed devices by specifying a device type as an optional argument β for example"network"to list only network devices. πlist-persistedβ list devices with currently persisted overrides on a bus (pciby default), along with their driver to be bound on the next boot. future you says thank you. β
π EXIT STATUS π
on success, 0 is returned, a non-zero failure code otherwise. simple as. β
π₯ EXAMPLES π₯
find devices currently driven by ixgbe driver:
# driverctl -v list-devices | grep ixgbe
0000:01:00.0 ixgbe (Ethernet 10G 4P X520/I350 rNDC)
0000:01:00.1 ixgbe (Ethernet 10G 4P X520/I350 rNDC)
change them to use the vfio-pci driver:
# driverctl set-override 0000:01:00.0 vfio-pci
# driverctl set-override 0000:01:00.1 vfio-pci
find devices with driver overrides:
# driverctl -v list-overrides
0000:01:00.0 vfio-pci (Ethernet 10G 4P X520/I350 rNDC)
0000:01:00.1 vfio-pci (Ethernet 10G 4P X520/I350 rNDC)
find network devices:
# driverctl list-devices network
0000:01:00.0 ixgbe
0000:01:00.1 ixgbe
0000:06:00.0 igb
0000:06:00.1 igb
remove the override from slot 0000:01:00.1:
# driverctl unset-override 0000:01:00.1
transiently remove the override from slot 0000:01:00.0:
# driverctl --nosave unset-override 0000:01:00.0
find devices with persisted driver overrides:
# driverctl list-persisted
0000:01:00.0 vfio-pci
π§ FILES π§
/etc/driverctl.d/*
π SEE ALSO π
udev(7) Β· udevadm(8) Β· lspci(8) Β· lsusb(8)
and that's the whole page bestie, so iconic π
this has been driverctl(8) from the System Manager's Manual β shoutout to the source for keeping it real, and no date was listed on this one so we're just gonna say timestamped the way the source gave it. stan. πβ¨π
π¦ where this page comes from
- centos-stream 9: driverctl 0.121-1.el9 Β· LGPL-2.1-or-later
- ubuntu stonking: driverctl 0.121-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms