diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netlink.h | 8 | ||||
| -rw-r--r-- | include/linux/notifier.h | 2 |
2 files changed, 10 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) { diff --git a/include/linux/notifier.h b/include/linux/notifier.h index 56204946541f..0db9736c1166 100644 --- a/include/linux/notifier.h +++ b/include/linux/notifier.h @@ -58,5 +58,7 @@ extern int notifier_call_chain(struct notifier_block **n, unsigned long val, voi #define SYS_HALT 0x0002 /* Notify of system halt */ #define SYS_POWER_OFF 0x0003 /* Notify of system power off */ +#define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */ + #endif /* __KERNEL__ */ #endif /* _LINUX_NOTIFIER_H */ |
