summaryrefslogtreecommitdiff
path: root/mem/framer.h
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-07-26 14:06:40 +0200
committerAlejandro Sior <aho@sior.be>2022-07-26 14:06:40 +0200
commite0fbf5ca9599cb7599731fe48573e97d05fa38da (patch)
tree2c3b3925c49fd2da68086c6cb4b06a891e823bd5 /mem/framer.h
parentc4e9a8ba15391ae5f1c820744ff1b03544d63467 (diff)
mem/vmap: add basic virtual memory management abstraction
Diffstat (limited to 'mem/framer.h')
-rw-r--r--mem/framer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mem/framer.h b/mem/framer.h
index 6d7034b..e2a6945 100644
--- a/mem/framer.h
+++ b/mem/framer.h
@@ -5,6 +5,8 @@
#include "allocator.h"
+/* Represents a free frame as part of the freelist, this is done
+ in order to avoid having to do annoying casts */
typedef struct mem_framer_freed {
struct mem_framer_freed *next;
} MemFramerFreed;
@@ -24,7 +26,7 @@ typedef struct mem_framer {
the freelist
NOTE: the freelist is a singly-linked list comprising
all frames that have been previously allocated
- and then freed */
+ and then freed */
MemFramerFreed *free;
/* The size of a frame. This value also defines the alignment