patch-2.3.99-pre3 linux/include/asm-ppc/mman.h
Next file: linux/include/asm-ppc/smplock.h
Previous file: linux/include/asm-ppc/elf.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Tue Mar 21 10:49:32 2000
- Orig file:
v2.3.99-pre2/linux/include/asm-ppc/mman.h
- Orig date:
Wed Dec 18 00:54:09 1996
diff -u --recursive --new-file v2.3.99-pre2/linux/include/asm-ppc/mman.h linux/include/asm-ppc/mman.h
@@ -16,14 +16,20 @@
#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
-#define MAP_EXECUTABLE 0x1000 /* mark it as a executable */
+#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */
#define MS_ASYNC 1 /* sync memory asynchronously */
#define MS_INVALIDATE 2 /* invalidate the caches */
#define MS_SYNC 4 /* synchronous memory sync */
-#define MCL_CURRENT 0x2000 /* lock all currently mapped pages */
-#define MCL_FUTURE 0x4000 /* lock all additions to address space */
+#define MCL_CURRENT 1 /* lock all current mappings */
+#define MCL_FUTURE 2 /* lock all future mappings */
+
+#define MADV_NORMAL 0x0 /* default page-in behavior */
+#define MADV_RANDOM 0x1 /* page-in minimum required */
+#define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */
+#define MADV_WILLNEED 0x3 /* pre-fault pages */
+#define MADV_DONTNEED 0x4 /* discard these pages */
/* compatibility flags */
#define MAP_ANON MAP_ANONYMOUS
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)