Managing and Developing Dynamically Loadable Kernel Modules

Managing and Developing Dynamically Loadable Kernel Modules
Managing Dynamically Loadable Kernel Modules
Chapter 12 517
Step 2. To unload a dynamically configured loadable module by ID number,
execute this kmadmin command:
/usr/sbin/kmadmin -u
module_id
Determining Which Modules are Currently Registered and/or Loaded
Use the -S or -s option of the kmadmin command to view detailed
information about all currently registered DLKM modules.
Step 1. To print the full status for all dynamically configured loadable modules
currently registered, execute this kmadmin command:
/usr/sbin/kmadmin -S
Step 2. To print the brief status for all dynamically configured loadable modules
currently registered, execute this kmadmin command:
/usr/sbin/kmadmin -s
Step 3. To print a list of all statically linked modules, execute the following
kmadmin command:
/usr/sbin/kmadmin -k
Obtaining Information About a Registered and/or Loaded Module
Use the -Q or -q option of the kmadmin command to view detailed
information about a specific DLKM module. For a DLKM module
configured as dynamically loadable, you can refer to the module by its
name or by its ID number.
Step 1. To display a dynamically configured loadable module’s status by name,
execute this kmadmin command:
/usr/sbin/kmadmin -Q
module_name
Step 2. To display a dynamically configured loadable module’s status by ID,
execute the following kmadmin command:
/usr/sbin/kmadmin -q
module_id
Depending on the type of module, information on the module’s block
major number, character major number, and flags may also be printed.
Information returned by the -Q and -q options includes:
Module’s name