]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/sysctl.h
sysctl: Add support for register sysctl tables with a normal cstring path.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 21 Jan 2012 18:26:26 +0000 (10:26 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Jan 2012 00:37:55 +0000 (16:37 -0800)
commit6e9d5164153ad6539edd31e7afb02a3e79124cad
treece6cb28dca49f68cc6236dc70a71ecf93593159f
parentf05e53a7fbb28c951c0c8cf3963fa8019ae1d4d3
sysctl: Add support for register sysctl tables with a normal cstring path.

Make __register_sysctl_table the core sysctl registration operation and
make it take a char * string as path.

Now that binary paths have been banished into the real of backwards
compatibility in kernel/binary_sysctl.c where they can be safely
ignored there is no longer a need to use struct ctl_path to represent
path names when registering ctl_tables.

Start the transition to using normal char * strings to represent
pathnames when registering sysctl tables.  Normal strings are easier
to deal with both in the internal sysctl implementation and for
programmers registering sysctl tables.

__register_sysctl_paths is turned into a backwards compatibility wrapper
that converts a ctl_path array into a normal char * string.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/proc_sysctl.c
include/linux/sysctl.h