diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 21:13:00 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 21:13:00 +0000 |
commit | a5afaee3d027a66148b0f184d401ed76e6c0f8ff (patch) | |
tree | c282759bc07a4113ec260619ddf151c51656b0ad /lib/heap.h | |
parent | 206dce7bab107651aa56dda8559b44958dc34a66 (diff) | |
download | ovm-a5afaee3d027a66148b0f184d401ed76e6c0f8ff.tar.gz ovm-a5afaee3d027a66148b0f184d401ed76e6c0f8ff.tar.bz2 ovm-a5afaee3d027a66148b0f184d401ed76e6c0f8ff.zip |
heap_free_page returns true if page was successfully deleted
Diffstat (limited to 'lib/heap.h')
-rw-r--r-- | lib/heap.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15,6 +15,7 @@ #include "./base.h" +#include <stdbool.h> #include <stdlib.h> typedef struct Page @@ -34,7 +35,7 @@ typedef struct } heap_t; void heap_create(heap_t *); -void heap_free_page(heap_t *, page_t *); +bool heap_free_page(heap_t *, page_t *); page_t *heap_allocate(heap_t *, size_t); void heap_stop(heap_t *); |