Displaying information about module parameters

SUSE Linux Enterprise Server 15 SP5 LPAR mode z/VM guest KVM guest

Loaded modules can export module parameter settings to sysfs.

The parameters for modules are available as sysfs attributes of the form:
/sys/module/<module_name>/parameters/<parameter_name>

Before you begin

You can display information about modules that fulfill these prerequisites:
  • The module must be loaded.
  • The module must export the parameters to sysfs.

Procedure

To find and display the parameters for a module, follow these steps:

  1. Optional: Confirm that the module of interest is loaded by issuing a command of this form:
    # lsmod | grep <module_name>
    where <module_name> is the name of the module.
  2. Optional: Get an overview of the parameters for the module by issuing a command of this form:
    # modinfo <module_name>
  3. Check if the module of interest exports parameters to sysfs. Issue a command of the form:
    # ls /sys/module/<module_name>/parameters
  4. If the previous command listed parameters, you can display the value for the parameter of interest. Issue a command of the form:
    # cat /sys/module/<module_name>/parameters/<parameter_name>

Example

  • To list the module parameters for the ap module, issue:
    # ls /sys/module/ap/parameters
     domain
     ...
  • To display the value of the domain parameter, issue:
    # cat /sys/module/ap/parameters/domain
    1