aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/kmalloc.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-03-02 18:16:15 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-03-02 18:16:15 +0100
commitceb687b02964197133fd2236cdbc74bf3948d034 (patch)
treeb34b7aeec70990978c2562aa2d7b00202a223926 /src/kernel/include/kmalloc.h
parentb68881abc4c50bbc8ee9e81b4e18b0ea011b83b7 (diff)
downloadkogata-ceb687b02964197133fd2236cdbc74bf3948d034.tar.gz
kogata-ceb687b02964197133fd2236cdbc74bf3948d034.zip
No lazy allocation of kernel memory. Placeholder for pmem freeing routine.
Diffstat (limited to 'src/kernel/include/kmalloc.h')
-rw-r--r--src/kernel/include/kmalloc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/include/kmalloc.h b/src/kernel/include/kmalloc.h
index d4a9272..17ea440 100644
--- a/src/kernel/include/kmalloc.h
+++ b/src/kernel/include/kmalloc.h
@@ -6,6 +6,9 @@
// Kernel memory allocator : one slab allocator for shared memory
// Thread-safe.
+// The normal malloc() call will try to free some memory when OOM and will loop
+// a few times if it cannot. It may fail though.
+
void kmalloc_setup();
/* vim: set ts=4 sw=4 tw=0 noet :*/