mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
2942e90050
commit
d387f6ad10
5 changed files with 42 additions and 7 deletions
|
|
@ -154,5 +154,5 @@ int netlbl_netlink_snd(struct sk_buff *skb, u32 pid)
|
|||
*/
|
||||
int netlbl_netlink_snd_multicast(struct sk_buff *skb, u32 pid, u32 group)
|
||||
{
|
||||
return genlmsg_multicast(skb, pid, group);
|
||||
return genlmsg_multicast(skb, pid, group, GFP_KERNEL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue