aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/genetlink.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2006-08-15 03:31:06 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 17:54:49 -0400
commitd387f6ad10764fc2174373b4a1cca443adee36e3 (patch)
treeed22c34f55de9c668eed1727d46239f3b48599b7 /include/net/genetlink.h
parent2942e90050569525628a9f34e0daaa9b661b49cc (diff)
[NETLINK]: Add notification message sending interface
Adds nlmsg_notify() implementing proper notification logic. The message is multicasted to all listeners in the group. The applications the requests orignates from can request a unicast back report in which case said socket will be excluded from the multicast to avoid duplicated notifications. nlmsg_multicast() is extended to take allocation flags to allow notification in atomic contexts. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/genetlink.h')
-rw-r--r--include/net/genetlink.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h
index 8c2287264266..97d6d3aba9d2 100644
--- a/include/net/genetlink.h
+++ b/include/net/genetlink.h
@@ -133,11 +133,12 @@ static inline int genlmsg_cancel(struct sk_buff *skb, void *hdr)
133 * @skb: netlink message as socket buffer 133 * @skb: netlink message as socket buffer
134 * @pid: own netlink pid to avoid sending to yourself 134 * @pid: own netlink pid to avoid sending to yourself
135 * @group: multicast group id 135 * @group: multicast group id
136 * @flags: allocation flags
136 */ 137 */
137static inline int genlmsg_multicast(struct sk_buff *skb, u32 pid, 138static inline int genlmsg_multicast(struct sk_buff *skb, u32 pid,
138 unsigned int group) 139 unsigned int group, gfp_t flags)
139{ 140{
140 return nlmsg_multicast(genl_sock, skb, pid, group); 141 return nlmsg_multicast(genl_sock, skb, pid, group, flags);
141} 142}
142 143
143/** 144/**