git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: (vm) memory mapping support: mmap/munmap
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
mm
/
mm.h
diff --git
a/lunaix-os/includes/lunaix/mm/mm.h
b/lunaix-os/includes/lunaix/mm/mm.h
index 6585916e4136d48cb2c0afa96ac341c4babfb65f..07d3d791df3f12fa05c6bbc52a6a7c11d5bc1243 100644
(file)
--- a/
lunaix-os/includes/lunaix/mm/mm.h
+++ b/
lunaix-os/includes/lunaix/mm/mm.h
@@
-3,6
+3,8
@@
#include <lunaix/ds/llist.h>
#include <lunaix/ds/mutex.h>
#include <lunaix/ds/llist.h>
#include <lunaix/ds/mutex.h>
+#include <lunaix/fs.h>
+#include <lunaix/types.h>
typedef struct
{
typedef struct
{
@@
-48,9
+50,11
@@
typedef struct
struct mm_region
{
struct llist_header head;
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 */
};
#endif /* __LUNAIX_MM_H */