sysctl: add base directory helpers
Add a set of helpers which can be used to declare and register
base directory sysctls on their own. We do this so we can later
move each of the base sysctl directories like "fs", "kernel", etc,
to their own respective files instead of shoving the declarations
and registrations all on kernel/sysctl.c. The lazy approach has
caught up and with this, we just end up extending the list of
base directories / sysctls on one file and this makes maintenance
difficult due to merge conflicts from many developers.
The declarations are unused yet, but they will be used in the
next patch to demonstrate how to cleanly deal with base sysctl
directories.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2 files changed