diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-05 15:06:17 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-05 15:06:17 +0100 |
commit | 274765f7daa3cc1094f9f26196fcf2b9a5289ee2 (patch) | |
tree | 974b59905b942ded566c5f9c2d512472646288fc /kernel/include/slab_alloc.h | |
parent | 902eea7a56b38c20bbdca414e58fc6c3f4393025 (diff) | |
download | kogata-274765f7daa3cc1094f9f26196fcf2b9a5289ee2.tar.gz kogata-274765f7daa3cc1094f9f26196fcf2b9a5289ee2.zip |
Corrections :
- replace size_t by void* in many places
- correct bug in region freeing code
Diffstat (limited to 'kernel/include/slab_alloc.h')
-rw-r--r-- | kernel/include/slab_alloc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/include/slab_alloc.h b/kernel/include/slab_alloc.h index a3bd7de..5c575ba 100644 --- a/kernel/include/slab_alloc.h +++ b/kernel/include/slab_alloc.h @@ -22,13 +22,13 @@ typedef struct slab_type { struct mem_allocator; typedef struct mem_allocator mem_allocator_t; -typedef void* (*page_alloc_fun_t)(const size_t bytes); -typedef void (*page_free_fun_t)(const void* ptr); +typedef void* (*page_alloc_fun_t)(size_t bytes); +typedef void (*page_free_fun_t)(void* ptr); mem_allocator_t* create_slab_allocator(const slab_type_t *types, page_alloc_fun_t af, page_free_fun_t ff); void destroy_slab_allocator(mem_allocator_t*); -void* slab_alloc(mem_allocator_t* a, const size_t sz); -void slab_free(mem_allocator_t* a, const void* ptr); +void* slab_alloc(mem_allocator_t* a, size_t sz); +void slab_free(mem_allocator_t* a, void* ptr); /* vim: set ts=4 sw=4 tw=0 noet :*/ |