summaryrefslogtreecommitdiff
path: root/include/linux/netlink.h
diff options
context:
space:
mode:
authorJames Morris <jmorris@intercode.com.au>2002-06-24 18:43:11 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2002-06-24 18:43:11 -0700
commit9acee33f410ab5ef8df06941ba13e48b732a23cd (patch)
treed4b1e140efee85f2fe8e2f26b5bbc9504711a288 /include/linux/netlink.h
parent0dd307f521d72555433f8d9eb1f786ff39c7fb7c (diff)
NETLINK: Add unicast release notifier.
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r--include/linux/netlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index b3a7c5770c45..327e4efe7adc 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -110,6 +110,8 @@ extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 pid, int
extern void netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 pid,
__u32 group, int allocation);
extern void netlink_set_err(struct sock *ssk, __u32 pid, __u32 group, int code);
+extern int netlink_register_notifier(struct notifier_block *nb);
+extern int netlink_unregister_notifier(struct notifier_block *nb);
/*
* skb should fit one page. This choice is good for headerless malloc.
@@ -129,6 +131,12 @@ struct netlink_callback
long args[4];
};
+struct netlink_notify
+{
+ int pid;
+ int protocol;
+};
+
static __inline__ struct nlmsghdr *
__nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len)
{