patch-2.2.13 linux/kernel/sysctl.c

Next file: linux/kernel/time.c
Previous file: linux/kernel/signal.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.12/linux/kernel/sysctl.c linux/kernel/sysctl.c
@@ -47,6 +47,8 @@
 #endif
 #ifdef CONFIG_SYSVIPC
 extern int shmmax;
+extern int shmall;
+extern int shmall_max;
 #endif
 
 #ifdef __sparc__
@@ -137,6 +139,8 @@
 extern int inodes_stat[];
 extern int dentry_stat[];
 
+static int zero_value = 0;
+
 /* The default sysctl tables: */
 
 static ctl_table root_table[] = {
@@ -214,6 +218,9 @@
 #ifdef CONFIG_SYSVIPC
 	{KERN_SHMMAX, "shmmax", &shmmax, sizeof (int),
 	 0644, NULL, &proc_dointvec},
+	{KERN_SHMALL, "shmall", &shmall, sizeof (int),
+	 0644, NULL, &proc_dointvec_minmax, &sysctl_intvec,
+	 NULL, &zero_value, &shmall_max},
 #endif
 #ifdef CONFIG_MAGIC_SYSRQ
 	{KERN_SYSRQ, "sysrq", &sysrq_enabled, sizeof (int),

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)