sysctl: Remember the ctl_table we passed to register_sysctl_paths
commit23eb06de7d2d333a0f7ebba2da663e00c9c9483e
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 30 Nov 2007 12:52:10 +0000 (30 23:52 +1100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:17 +0000 (28 14:55 -0800)
tree2958ebaacc8d8fd4b1a4d1966c31e6395b5b634a
parent29e796fd4de54b8f5bc30d897611210ece4fd0f2
sysctl: Remember the ctl_table we passed to register_sysctl_paths

By doing this we allow users of register_sysctl_paths that build
and dynamically allocate their ctl_table to be simpler.  This allows
them to just remember the ctl_table_header returned from
register_sysctl_paths from which they can now find the
ctl_table array they need to free.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Daniel Lezcano <dlezcano@fr.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sysctl.h
kernel/sysctl.c