modprobe -r
, and then load it with modprobe
along with a list of customized parameters. This method is often used when the module does not have many dependencies, or to test different combinations of parameters without making them persistent, and is the method covered in this section.
/etc/modprobe.d/
directory. This method makes the module parameters persistent by ensuring that they are set each time the module is loaded, such as after every reboot or modprobe
command. This method is covered in Section 22.6, “Persistent Module Loading”, though the following information is a prerequisite.
modprobe
to load a kernel module with custom parameters using the following command line format:
~]# modprobe <module_name>
[parameter
=value
]
modprobe
will incorrectly interpret the values following spaces as additional parameters.
modprobe
command silently succeeds with an exit status of 0
if:
modprobe
command does not automatically reload the module, or alert you that it is already loaded.
e1000e
module, which is the network driver for Intel PRO/1000 network adapters, as an example:
~]# lsmod |grep e1000e
~]#
~]# modprobe e1000e InterruptThrottleRate=3000,3000,3000 EEE=1
[4]
Despite what the example might imply, Energy Efficient Ethernet is turned on by default in the e1000e
driver.