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
Architectural Support: x86_64 (#37)
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
mm
/
mmap.h
diff --git
a/lunaix-os/includes/lunaix/mm/mmap.h
b/lunaix-os/includes/lunaix/mm/mmap.h
index 44ae4699a9e3caba71554f1185b27e9ce928402c..307610b6aa4ec9f430bbe9161dc1bc06901a5940 100644
(file)
--- a/
lunaix-os/includes/lunaix/mm/mmap.h
+++ b/
lunaix-os/includes/lunaix/mm/mmap.h
@@
-15,6
+15,8
@@
struct mmap_param
u32_t proct; // protections
u32_t flags; // other options
u32_t type; // region type
u32_t proct; // protections
u32_t flags; // other options
u32_t type; // region type
+ ptr_t range_start;
+ ptr_t range_end;
};
int
};
int
@@
-22,6
+24,13
@@
mem_adjust_inplace(vm_regions_t* regions,
struct mm_region* region,
ptr_t newend);
struct mm_region* region,
ptr_t newend);
+int
+mmap_user(void** addr_out,
+ struct mm_region** created,
+ ptr_t addr,
+ struct v_file* file,
+ struct mmap_param* param);
+
int
mem_map(void** addr_out,
struct mm_region** created,
int
mem_map(void** addr_out,
struct mm_region** created,