^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/vmbus/devices/.../driver_override
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: August 2019
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: Stephen Hemminger <sthemmin@microsoft.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) This file allows the driver for a device to be specified which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) will override standard static and dynamic ID matching. When
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) specified, only a driver with a name matching the value written
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) to driver_override will have an opportunity to bind to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) device. The override is specified by writing a string to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) driver_override file (echo uio_hv_generic > driver_override) and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) may be cleared with an empty string (echo > driver_override).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) This returns the device to standard matching rules binding.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Writing to driver_override does not automatically unbind the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) device from its current driver or make any attempt to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) automatically load the specified driver. If no driver with a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) matching name is currently loaded in the kernel, the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) will not bind to any driver. This also allows devices to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) opt-out of driver binding using a driver_override name such as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) "none". Only a single driver may be specified in the override,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) there is no support for parsing delimiters.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)