sysfs-bus-vdpa 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. What: /sys/bus/vdpa/driver_autoprobe
  2. Date: March 2020
  3. Contact: [email protected]
  4. Description:
  5. This file determines whether new devices are immediately bound
  6. to a driver after the creation. It initially contains 1, which
  7. means the kernel automatically binds devices to a compatible
  8. driver immediately after they are created.
  9. Writing "0" to this file disable this feature, any other string
  10. enable it.
  11. What: /sys/bus/vdpa/driver_probe
  12. Date: March 2020
  13. Contact: [email protected]
  14. Description:
  15. Writing a device name to this file will cause the kernel binds
  16. devices to a compatible driver.
  17. This can be useful when /sys/bus/vdpa/driver_autoprobe is
  18. disabled.
  19. What: /sys/bus/vdpa/drivers/.../bind
  20. Date: March 2020
  21. Contact: [email protected]
  22. Description:
  23. Writing a device name to this file will cause the driver to
  24. attempt to bind to the device. This is useful for overriding
  25. default bindings.
  26. What: /sys/bus/vdpa/drivers/.../unbind
  27. Date: March 2020
  28. Contact: [email protected]
  29. Description:
  30. Writing a device name to this file will cause the driver to
  31. attempt to unbind from the device. This may be useful when
  32. overriding default bindings.
  33. What: /sys/bus/vdpa/devices/.../driver_override
  34. Date: November 2021
  35. Contact: [email protected]
  36. Description:
  37. This file allows the driver for a device to be specified.
  38. When specified, only a driver with a name matching the value
  39. written to driver_override will have an opportunity to bind to
  40. the device. The override is specified by writing a string to the
  41. driver_override file (echo vhost-vdpa > driver_override) and may
  42. be cleared with an empty string (echo > driver_override).
  43. This returns the device to standard matching rules binding.
  44. Writing to driver_override does not automatically unbind the
  45. device from its current driver or make any attempt to
  46. automatically load the specified driver. If no driver with a
  47. matching name is currently loaded in the kernel, the device will
  48. not bind to any driver. This also allows devices to opt-out of
  49. driver binding using a driver_override name such as "none".
  50. Only a single driver may be specified in the override, there is
  51. no support for parsing delimiters.