diff options
author | dyson <dyson@FreeBSD.org> | 1996-05-19 07:36:50 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-05-19 07:36:50 +0000 |
commit | d3600176f48ca801e31f738ce5c37c51e3b30fe3 (patch) | |
tree | d5aabcba7719875b5a0f874d310c6f63ca671595 /sys/sys/mman.h | |
parent | 7959948e53f05489f9a248339725ac7918aa2968 (diff) | |
download | FreeBSD-src-d3600176f48ca801e31f738ce5c37c51e3b30fe3.zip FreeBSD-src-d3600176f48ca801e31f738ce5c37c51e3b30fe3.tar.gz |
Initial support for mincore and madvise. Both are almost fully
supported, except madvise does not page in with MADV_WILLNEED, and
MADV_DONTNEED doesn't force dirty pages out.
Diffstat (limited to 'sys/sys/mman.h')
-rw-r--r-- | sys/sys/mman.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sys/mman.h b/sys/sys/mman.h index ce35eb8..d846911 100644 --- a/sys/sys/mman.h +++ b/sys/sys/mman.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)mman.h 8.2 (Berkeley) 1/9/95 - * $Id: mman.h,v 1.11 1996/03/02 17:42:34 peter Exp $ + * $Id: mman.h,v 1.12 1996/03/11 02:09:09 hsu Exp $ */ #ifndef _SYS_MMAN_H_ @@ -84,6 +84,15 @@ #define MADV_WILLNEED 3 /* will need these pages */ #define MADV_DONTNEED 4 /* dont need these pages */ +/* + * Return bits from mincore + */ +#define MINCORE_INCORE 0x1 /* Page is incore */ +#define MINCORE_REFERENCED 0x2 /* Page has been referenced by us */ +#define MINCORE_MODIFIED 0x4 /* Page has been modified by us */ +#define MINCORE_REFERENCED_OTHER 0x8 /* Page has been referenced */ +#define MINCORE_MODIFIED_OTHER 0x10 /* Page has been modified */ + #ifndef KERNEL #include <sys/cdefs.h> |