From f81bf65484fa8c81a1886f456c71f1e6eebe84e9 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 10 Aug 2010 20:39:57 +0200 Subject: Added a lot of comments in kernel code. A bit of cleaning too. --- src/kernel/mem/heap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kernel/mem/heap.h') diff --git a/src/kernel/mem/heap.h b/src/kernel/mem/heap.h index 39ba37e..8f8cdcf 100644 --- a/src/kernel/mem/heap.h +++ b/src/kernel/mem/heap.h @@ -1,6 +1,11 @@ #ifndef DEF_HEAP_H #define DEF_HEAP_H +/* The heap is the data structure that permits allocating and freeing memory easily. + The functions in this file are only used by mem.c, which provides kmalloc and kfree. + The heap algorithm used is the one described here : + http://www.jamesmolloy.co.uk/tutorial_html/7.-The%20Heap.html */ + #include "types.h" struct heap_header { -- cgit v1.2.3