
Using sysfs
The sysfs virtual file system, provided by Linux 2.6 kernels, is available in RHEL
5.It exports information about supported devices and drivers from the kernel device model into user space and configures devices and drivers.
NOTE:
Driver parameter changes that you make with sysfs are effective immediately, and do not interrupt I/O operations on the adapter.
CAUTION!
Driver parameter changes that you make with sysfs are not persistent across reboots or driver reloads.
For the QLogic NIC driver, the following table summarizes the sysfs locations and the parameters can be modified by accessing these locations.
Table 6-3. Sysfs Locations and Parameters
Sysfs Location | Modifiable Driver Parameters |
|
|
/sys/module/qlge/parameters | qlge_irq_type |
| qlge_mpi_coredump |
| qlge_spool_coredump |
|
|
/sys/class/net/ethX/ | mtu |
| flags |
| weight |
|
|
For example:
1.Change directory into the sysfs location where the driver parameter to be modified is represented as a sysfs special file/entry. For example:
#cd /sys/module/qlge/parameters
2.Modify the sysfs entry for the corresponding driver parameter. The following command forces the qlge driver to use MSI interrupts. For example:
#echo 1 > qlge_irq_type
|