YaST2 Developers Documentation: OSRModuleLoading

OSRModuleLoading

OSRModuleLoading.ycp
Load and unload kernel modules

This module has an unstable interface.

Imports

  • ModuleLoading

Global Functions

Local Variables

local startup_loaded_modules -> list<string>

Contains a list with the name of all kernel modules loaded at the first import of the OSRModuleLoading module.

local loaded_modules -> list<string>

Contains a list with the name of all kernel modules loaded with the Load define (OSRModuleLoading::Load(..); .

global OSRModuleLoading () -> void

The constructor init the startup_loaded_modules list.

global Load (string modulename, string moduleargs, string vendorname, string devicename, boolean ask_before_loading, boolean with_modprobe) -> boolean

Load a module if not already loaded by linuxrc and saves the name of the loaded modules in the list loaded_modules.

Parameters:
modulename
moduleargs
vendorname
devicename
ask_before_loading
with_modprobe
Return value:
: `dont user choose *not* to load module `ok module loaded ok `fail module loading failed
global Unload (string modname) -> boolean

Unload one kernel module.

Parameters:
modname name of the kernel module that should be unloaded
global UnloadAll () -> boolean

Unload all loaded kernel modules.