patch-1.3.58 linux/include/linux/swapctl.h

Next file: linux/include/linux/sysctl.h
Previous file: linux/include/linux/soundcard.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.57/linux/include/linux/swapctl.h linux/include/linux/swapctl.h
@@ -42,6 +42,17 @@
 typedef kswapd_control_v1 kswapd_control_t;
 extern kswapd_control_t kswapd_ctl;
 
+typedef struct swapstat_v1
+{
+	int	wakeups;
+	int	pages_reclaimed;
+	int	pages_shm;
+	int	pages_mmap;
+	int	pages_swap;
+} swapstat_v1;
+typedef swapstat_v1 swapstat_t;
+extern swapstat_t swapstats;
+
 #define SC_VERSION	1
 #define SC_MAX_VERSION	1
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this