Added some memory allocation and concurrency basics.
[cascardo/kernel/old_slides/.git] / 03.char / 03.char.xml
index 43a871a..1d278a5 100644 (file)
@@ -86,4 +86,21 @@ when driver writes less bytes than requested.
 </para>
 </foil>
 
+<foil>
+<title>Memory Allocation</title>
+<para>
+<emphasis>kmalloc</emphasis> and <emphasis>kfree</emphasis> are defined in
+<emphasis>include/linux/slab.h</emphasis> and are equivalent to their standard C
+functions <emphasis>malloc</emphasis> and <emphasis>free</emphasis>.
+</para>
+</foil>
+
+<foil>
+<title>Concurrency</title>
+<para>
+Semaphores may be used for protection with the <emphasis>up</emphasis> and
+<emphasis>down</emphasis> operations.
+</para>
+</foil>
+
 </slides>