This patch was made against 2.4.10-pre2.
-Paul Larson
diff -urN linux-2.4.10-pre2/fs/proc/proc_misc.c linux-2.4.10-pre2-vmload/fs/proc/proc_misc.c
--- linux-2.4.10-pre2/fs/proc/proc_misc.c	Thu Aug 30 09:51:47 2001
+++ linux-2.4.10-pre2-vmload/fs/proc/proc_misc.c	Thu Aug 30 09:55:10 2001
@@ -199,6 +199,15 @@
 #undef K
 }
 
+vmload_read_proc(char *page, char **start, off_t off,
+				 int count, int *eof, void *data) {
+	int len = 0;
+ 
+	len += sprintf(page+len, "%d\n", memory_pressure);
+	*eof = 1;
+	return len;
+}
+
 static int version_read_proc(char *page, char **start, off_t off,
 				 int count, int *eof, void *data)
 {
@@ -518,6 +527,7 @@
 		{"loadavg",     loadavg_read_proc},
 		{"uptime",	uptime_read_proc},
 		{"meminfo",	meminfo_read_proc},
+		{"vmload",	vmload_read_proc},
 		{"version",	version_read_proc},
 		{"cpuinfo",	cpuinfo_read_proc},
 #ifdef CONFIG_PROC_HARDWARE
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/