Init and Exit functions.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 6 Dec 2009 01:17:04 +0000 (23:17 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 6 Dec 2009 01:17:04 +0000 (23:17 -0200)
01.hello/01.hello.xml

index aa0e3dc..7306db5 100644 (file)
@@ -44,6 +44,22 @@ $ make -C /lib/modules/`uname -r`/build M=$PWD modules
 </screen>
 </foil>
 
 </screen>
 </foil>
 
+<foil>
+<title>Init and Exit Functions</title>
+<para>
+We use <emphasis>module_init</emphasis> and <emphasis>module_exit</emphasis> to
+declare our init and exit functions.
+</para>
+</foil>
+
+<foil>
+<title>Init and Exit Functions</title>
+<para>
+The <emphasis>__init</emphasis> and <emphasis>__exit</emphasis> marks allow the
+kernel to remove them when they are not needed, reducing memory consumption.
+</para>
+</foil>
+
 <foil>
 <title>Module Tools</title>
 <itemizedlist>
 <foil>
 <title>Module Tools</title>
 <itemizedlist>