feat: (vm) memory mapping support: mmap/munmap
[lunaix-os.git] / lunaix-os / includes / lunaix / mm / mm.h
index 6585916e4136d48cb2c0afa96ac341c4babfb65f..07d3d791df3f12fa05c6bbc52a6a7c11d5bc1243 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <lunaix/ds/llist.h>
 #include <lunaix/ds/mutex.h>
+#include <lunaix/fs.h>
+#include <lunaix/types.h>
 
 typedef struct
 {
@@ -48,9 +50,11 @@ typedef struct
 struct mm_region
 {
     struct llist_header head;
-    unsigned long start;
-    unsigned long end;
-    unsigned int attr;
+    struct v_file* mfile;
+    u32_t offset;
+    ptr_t start;
+    ptr_t end;
+    u32_t attr;
 };
 
 #endif /* __LUNAIX_MM_H */