Penguin

Differences between version 3 and predecessor to the previous major change of Module.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 3 Last edited on Thursday, July 21, 2005 11:13:23 am by IanMcDonald Revert
Older page: version 2 Last edited on Saturday, October 25, 2003 9:23:25 pm by JohnMcPherson Revert
@@ -1,5 +1,31 @@
 In computer software, a [Module] means an optional piece of code that isn't required for a program to run, but can be loaded when needed. 
  
 When talking about the [Linux] [Kernel], it means a Driver or other piece of code that the kernel can load and use on request. Examples include [DeviceDriver]s for various pieces of hardware that aren't required for the computer to boot and work (such as sound card or graphics card drivers), and modules for various network protocols and disk formats that might not be used very often, so don't need to be loaded in memory all the time (such as the ISO-9660 disk format used by [CDROM]s, or the [PPP] or [IPv6] network protocols). 
  
-See KernelErrorMessages for some errors related to modules, and ModuleInitTools for information about modules with the upcoming [LinuxKernel2.6]. 
+!Working with modules  
+  
+To load a module into memory the format of the command is:  
+<pre>  
+modprobe modulename  
+</pre>  
+  
+To remove a module from memory the format of the command is:  
+<pre>  
+modprobe -r modulename  
+</pre>  
+NB You cannot always remove a module, especially if in use or module removing has not been compiled into the [Kernel]  
+  
+To see a list of all modules installed on the system:  
+<pre>  
+modprobe -l  
+</pre>  
+NB this does not show the modules running on the system. To do this type:  
+<pre>  
+lsmod  
+</pre>  
+  
+!Kernel options for modules.  
+There are a number of options you can alter for modules you can alter when building the kernel under "Loadable Modules Support" that may be use for you if you are [Kernel] developer.  
+  
+----  
+ See also KernelErrorMessages for some errors related to modules, and ModuleInitTools for information about modules with [LinuxKernel2.6].