Module to manage Linux kernel modules
salt.modules.kmod.
available
()¶Return a list of all available kernel modules
CLI 范例:
salt '*' kmod.available
salt.modules.kmod.
check_available
(mod)¶Check to see if the specified kernel module is available
CLI 范例:
salt '*' kmod.check_available kvm
salt.modules.kmod.
is_loaded
(mod)¶Check to see if the specified kernel module is loaded
CLI 范例:
salt '*' kmod.is_loaded kvm
salt.modules.kmod.
load
(mod, persist=False)¶Load the specified kernel module
CLI 范例:
salt '*' kmod.load kvm
salt.modules.kmod.
lsmod
()¶Return a dict containing information about currently loaded modules
CLI 范例:
salt '*' kmod.lsmod
salt.modules.kmod.
mod_list
(only_persist=False)¶Return a list of the loaded module names
CLI 范例:
salt '*' kmod.mod_list
salt.modules.kmod.
remove
(mod, persist=False, comment=True)¶Remove the specified kernel module
CLI 范例:
salt '*' kmod.remove kvm