X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/48b4a227035048fdebcd32532deb7a857c6199ac..61bcf0c65dac58d2f29ab40e016489c89ec8eec0:/lunaix-os/includes/lunaix/mm/dmm.h diff --git a/lunaix-os/includes/lunaix/mm/dmm.h b/lunaix-os/includes/lunaix/mm/dmm.h index 793ab3f..0a79cdc 100644 --- a/lunaix-os/includes/lunaix/mm/dmm.h +++ b/lunaix-os/includes/lunaix/mm/dmm.h @@ -2,9 +2,9 @@ #define __LUNAIX_DMM_H // Dynamic Memory (i.e., heap) Manager -#include #include #include +#include #define M_ALLOCATED 0x1 #define M_PREV_FREE 0x2 @@ -31,14 +31,14 @@ #define HEAP_INIT_SIZE 4096 - int dmm_init(heap_context_t* heap); int -lxsbrk(heap_context_t* heap, void* addr); +lxbrk(heap_context_t* heap, void* addr, int user); + void* -lxbrk(heap_context_t* heap, size_t size); +lxsbrk(heap_context_t* heap, size_t size, int user); void* lx_malloc_internal(heap_context_t* heap, size_t size);