debuggers.hg

view extras/mini-os/include/posix/sys/mman.h @ 17984:b3d827e63a09

stubdom: PCI passthrough support via PV-PCI

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 02 13:54:20 2008 +0100 (2008-07-02)
parents a905c582a406
children 26afc8557f9f
line source
1 #ifndef _POSIX_SYS_MMAN_H
2 #define _POSIX_SYS_MMAN_H
4 #define PROT_READ 0x1
5 #define PROT_WRITE 0x2
6 #define PROT_EXEC 0x4
8 #define MAP_SHARED 0x01
9 #define MAP_PRIVATE 0x02
10 #define MAP_ANON 0x20
12 /* Pages are always resident anyway */
13 #define MAP_LOCKED 0x0
15 #define MAP_FAILED ((void*)0)
17 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset);
18 int munmap(void *start, size_t length);
19 #define munlock(addr, len) ((void)addr, (void)len, 0)
20 #define mlock(addr, len) ((void)addr, (void)len, 0)
22 #endif /* _POSIX_SYS_MMAN_H */