[UNIX]: Extend unix_sysctl_(un)register prototypes
Add the struct net * argument to both of them to use in the future. Also make the register one return an error code. It is useless right now, but will make the future patches much simpler. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
dd88590995
commit
97577e3828
@@ -48,12 +48,13 @@ static ctl_table unix_root_table[] = {
|
||||
|
||||
static struct ctl_table_header * unix_sysctl_header;
|
||||
|
||||
void unix_sysctl_register(void)
|
||||
int unix_sysctl_register(struct net *net)
|
||||
{
|
||||
unix_sysctl_header = register_sysctl_table(unix_root_table);
|
||||
return unix_sysctl_header == NULL ? -ENOMEM : 0;
|
||||
}
|
||||
|
||||
void unix_sysctl_unregister(void)
|
||||
void unix_sysctl_unregister(struct net *net)
|
||||
{
|
||||
unregister_sysctl_table(unix_sysctl_header);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user