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
Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[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..36f8904be92aa7e84aeb6f1dda7d962e5daf58a7 100644
(file)
--- a/
lunaix-os/includes/lunaix/mm/mmap.h
+++ b/
lunaix-os/includes/lunaix/mm/mmap.h
@@
-11,10
+11,11
@@
struct mmap_param
struct proc_mm* pvms; // process vm
off_t offset; // mapped file offset
size_t mlen; // mapped memory length
struct proc_mm* pvms; // process vm
off_t offset; // mapped file offset
size_t mlen; // mapped memory length
- size_t flen; // mapped file length
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
+23,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,