netlink: Add new netlink_release function
[linux-2.6-microblaze.git] / net / netlink / af_netlink.h
index 90a3198..fd424cd 100644 (file)
@@ -42,6 +42,8 @@ struct netlink_sock {
        void                    (*netlink_rcv)(struct sk_buff *skb);
        int                     (*netlink_bind)(struct net *net, int group);
        void                    (*netlink_unbind)(struct net *net, int group);
+       void                    (*netlink_release)(struct sock *sk,
+                                                  unsigned long *groups);
        struct module           *module;
 
        struct rhash_head       node;
@@ -64,6 +66,8 @@ struct netlink_table {
        struct module           *module;
        int                     (*bind)(struct net *net, int group);
        void                    (*unbind)(struct net *net, int group);
+       void                    (*release)(struct sock *sk,
+                                          unsigned long *groups);
        int                     registered;
 };