summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-04-22 20:53:59 -0300
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-04-22 20:53:59 -0300
commit43062f4f0bfdaad3b1955271c8e252c9e5aade05 (patch)
tree67ee36b51381b907f4e7ec38dd39f47ea4a1ba6a /include
parent5ac8451abba1f31689b34468dc33ebf1b5015258 (diff)
o net: module refcounting for sk_alloc/sk_free
I had to move the rtnetlink_init and init_netlink calls to af_netlink init time, so that the sk_alloc called down the rtnetlink_init callchain is done after the PF_NETLINK net_proto_family is sock_registered, and because of that the af_netlink init function call had to be moved to earlier by means of subsys_initcall (DaveM's suggestion).
Diffstat (limited to 'include')
-rw-r--r--include/linux/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index fc6b655dcdc3..8b012430f49d 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -140,6 +140,9 @@ struct net_proto_family {
struct module *owner;
};
+extern int net_family_get(int family);
+extern void net_family_put(int family);
+
struct iovec;
extern int sock_wake_async(struct socket *sk, int how, int band);