Init and Exit functions.
[cascardo/kernel/old_slides/.git] / 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>
 
+<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>