diff options
| author | Eric W. Biederman <[email protected]> | 2007-11-30 23:52:10 +1100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-01-28 14:55:17 -0800 |
| commit | 23eb06de7d2d333a0f7ebba2da663e00c9c9483e (patch) | |
| tree | 2958ebaacc8d8fd4b1a4d1966c31e6395b5b634a /include | |
| parent | 29e796fd4de54b8f5bc30d897611210ece4fd0f2 (diff) | |
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 <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Cedric Le Goater <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sysctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 3b6e2c9fbb2e..77de3bfd8744 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -1057,6 +1057,7 @@ struct ctl_table_header struct list_head ctl_entry; int used; struct completion *unregistering; + struct ctl_table *ctl_table_arg; }; /* struct ctl_path describes where in the hierarchy a table is added */ |