Xe Configfs¶
Overview¶
Configfs is a filesystem-based manager of kernel objects. XE KMD registers a
configfs subsystem called 'xe'
that creates a directory in the mounted configfs directory
The user can create devices under this directory and configure them as necessary
See Configfs - Userspace-driven Kernel Object Configuration for more information about how configfs works.
Create devices¶
In order to create a device, the user has to create a directory inside 'xe'
:
mkdir /sys/kernel/config/xe/0000:03:00.0/
Every device created is populated by the driver with entries that can be used to configure it:
/sys/kernel/config/xe/
.. 0000:03:00.0/
... survivability_mode
Configure Attributes¶
Survivability mode:¶
Enable survivability mode on supported cards. This setting only takes effect when probing the device. Example to enable it:
# echo 1 > /sys/kernel/config/xe/0000:03:00.0/survivability_mode
# echo 0000:03:00.0 > /sys/bus/pci/drivers/xe/bind (Enters survivability mode if supported)
Remove devices¶
The created device directories can be removed using rmdir
:
rmdir /sys/kernel/config/xe/0000:03:00.0/