[PATCH 5/7][UTS] Use the ctl paths to register tables
- From: Pavel Emelyanov <xemul@xxxxxxxxxx>
- Date: Fri, 30 Nov 2007 16:13:24 +0300
Same as with the IPC sysctls - I do not add any ctl roots
to handle multiple UTS namespaces, since we already track
this case in ctl handlers.
Signed-off-by: Pavel Emelyanov <xemul@xxxxxxxxxx>
---
diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
index fe3a56c..568ff0b 100644
--- a/kernel/utsname_sysctl.c
+++ b/kernel/utsname_sysctl.c
@@ -128,19 +128,17 @@ static struct ctl_table uts_kern_table[] = {
{}
};
-static struct ctl_table uts_root_table[] = {
+static struct ctl_path uts_root_path[] = {
{
- .ctl_name = CTL_KERN,
.procname = "kernel",
- .mode = 0555,
- .child = uts_kern_table,
+ .ctl_name = CTL_KERN,
},
{}
};
static int __init utsname_sysctl_init(void)
{
- register_sysctl_table(uts_root_table);
+ register_sysctl_paths(uts_root_path, uts_kern_table);
return 0;
}
--
1.5.3.4
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/7] Start using sysctl paths in the core kernel code
- From: Pavel Emelyanov
- [PATCH 0/7] Start using sysctl paths in the core kernel code
- Prev by Date: Re: [PATCH] ipwireless_cs driver for 4G PC Card
- Next by Date: [PATCH 6/7][MQUEUE] Move sysctl management code under ifdef CONFIG_SYSCTL
- Previous by thread: [PATCH 4/7][SCHED] Use the ctl paths to register tables
- Next by thread: [PATCH 6/7][MQUEUE] Move sysctl management code under ifdef CONFIG_SYSCTL
- Index(es):