patch-2.3.25 linux/kernel/sysctl.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/sys.c
Back to the patch index
Back to the overall index
- Lines: 82
- Date:
Fri Oct 29 15:07:16 1999
- Orig file:
v2.3.24/linux/kernel/sysctl.c
- Orig date:
Sat Oct 9 11:47:50 1999
diff -u --recursive --new-file v2.3.24/linux/kernel/sysctl.c linux/kernel/sysctl.c
@@ -49,7 +49,7 @@
extern int sg_big_buff;
#endif
#ifdef CONFIG_SYSVIPC
-extern int shmmax;
+extern size_t shmmax;
#endif
#ifdef __sparc__
@@ -136,7 +136,7 @@
NULL /* revalidate */
};
-extern struct proc_dir_entry proc_sys_root;
+extern struct proc_dir_entry *proc_sys_root;
static void register_proc_table(ctl_table *, struct proc_dir_entry *);
static void unregister_proc_table(ctl_table *, struct proc_dir_entry *);
@@ -213,8 +213,8 @@
{KERN_RTSIGMAX, "rtsig-max", &max_queued_signals, sizeof(int),
0644, NULL, &proc_dointvec},
#ifdef CONFIG_SYSVIPC
- {KERN_SHMMAX, "shmmax", &shmmax, sizeof (int),
- 0644, NULL, &proc_dointvec},
+ {KERN_SHMMAX, "shmmax", &shmmax, sizeof (size_t),
+ 0644, NULL, &proc_doulongvec_minmax},
#endif
#ifdef CONFIG_MAGIC_SYSRQ
{KERN_SYSRQ, "sysrq", &sysrq_enabled, sizeof (int),
@@ -285,7 +285,7 @@
void __init sysctl_init(void)
{
#ifdef CONFIG_PROC_FS
- register_proc_table(root_table, &proc_sys_root);
+ register_proc_table(root_table, proc_sys_root);
#endif
}
@@ -480,7 +480,7 @@
else
DLIST_INSERT_BEFORE(&root_table_header, tmp, ctl_entry);
#ifdef CONFIG_PROC_FS
- register_proc_table(table, &proc_sys_root);
+ register_proc_table(table, proc_sys_root);
#endif
return tmp;
}
@@ -492,7 +492,7 @@
{
DLIST_DELETE(header, ctl_entry);
#ifdef CONFIG_PROC_FS
- unregister_proc_table(header->ctl_table, &proc_sys_root);
+ unregister_proc_table(header->ctl_table, proc_sys_root);
#endif
kfree(header);
}
@@ -1067,6 +1067,12 @@
return -ENOSYS;
}
+int proc_dointvec_bset(ctl_table *table, int write, struct file *filp,
+ void *buffer, size_t *lenp)
+{
+ return -ENOSYS;
+}
+
int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp,
void *buffer, size_t *lenp)
{
@@ -1308,6 +1314,12 @@
int proc_dointvec(ctl_table *table, int write, struct file *filp,
void *buffer, size_t *lenp)
+{
+ return -ENOSYS;
+}
+
+int proc_dointvec_bset(ctl_table *table, int write, struct file *filp,
+ void *buffer, size_t *lenp)
{
return -ENOSYS;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)