git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
regression: mmap for fd
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
mm
/
mmap.h
1
#ifndef __LUNAIX_MMAP_H
2
#define __LUNAIX_MMAP_H
3
4
#include <lunaix/fs.h>
5
#include <lunaix/mm/region.h>
6
#include <lunaix/types.h>
7
8
void*
9
mem_map(ptr_t pd_ref,
10
vm_regions_t* regions,
11
void* addr,
12
struct v_file* file,
13
off_t offset,
14
size_t length,
15
u32_t attrs,
16
u32_t options);
17
18
void*
19
mem_unmap(ptr_t mnt, vm_regions_t* regions, void* addr, size_t length);
20
21
#endif /* __LUNAIX_MMAP_H */