summaryrefslogtreecommitdiffstats
path: root/include/net/genetlink.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2011-11-11 04:14:37 +0100
committerJesse Gross <jesse@nicira.com>2011-12-03 18:35:05 +0100
commit263ba61d3b19508dfb003c215ec5d23f882b4f87 (patch)
tree1f00fe8aeaff938b6e6706d145f761c5990fc28e /include/net/genetlink.h
parentatm: clip: Remove code commented out since eternity. (diff)
downloadlinux-263ba61d3b19508dfb003c215ec5d23f882b4f87.tar.xz
linux-263ba61d3b19508dfb003c215ec5d23f882b4f87.zip
genetlink: Add genl_notify()
Open vSwitch uses Generic Netlink interface for communication between userspace and kernel module. genl_notify() is used for sending notification back to userspace. genl_notify() is analogous to rtnl_notify() but uses genl_sock instead of rtnl. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/net/genetlink.h')
-rw-r--r--include/net/genetlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h
index 82d8d09faa44..7db32995ccd3 100644
--- a/include/net/genetlink.h
+++ b/include/net/genetlink.h
@@ -128,6 +128,8 @@ extern int genl_register_mc_group(struct genl_family *family,
struct genl_multicast_group *grp);
extern void genl_unregister_mc_group(struct genl_family *family,
struct genl_multicast_group *grp);
+extern void genl_notify(struct sk_buff *skb, struct net *net, u32 pid,
+ u32 group, struct nlmsghdr *nlh, gfp_t flags);
/**
* genlmsg_put - Add generic netlink header to netlink message