From ee6d8a3e60f8cbe8d9163e6fd41edb8cba07083c Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Mon, 7 Dec 2009 08:49:28 -0200 Subject: [PATCH] Added some memory allocation and concurrency basics. --- 03.char/03.char.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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. + + + -- 2.20.1