#include <lunaix/ds/llist.h>
#include <lunaix/ds/mutex.h>
+#include <lunaix/fs.h>
+#include <lunaix/types.h>
typedef struct
{
#define REGION_WSHARED 0x2
#define REGION_PERM_MASK 0x1c
+#define REGION_MODE_MASK 0x3
#define REGION_READ (1 << 2)
#define REGION_WRITE (1 << 3)
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 */