From: Thadeu Lima de Souza Cascardo Date: Mon, 7 Dec 2009 10:49:28 +0000 (-0200) Subject: Added some memory allocation and concurrency basics. X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fkernel%2Fold_slides%2F.git;a=commitdiff_plain;h=ee6d8a3e60f8cbe8d9163e6fd41edb8cba07083c Added some memory allocation and concurrency basics. --- diff --git a/03.char/03.char.xml b/03.char/03.char.xml index 43a871a..1d278a5 100644 --- a/03.char/03.char.xml +++ b/03.char/03.char.xml @@ -86,4 +86,21 @@ when driver writes less bytes than requested. + +Memory Allocation + +kmalloc and kfree are defined in +include/linux/slab.h and are equivalent to their standard C +functions malloc and free. + + + + +Concurrency + +Semaphores may be used for protection with the up and +down operations. + + +