diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netlink/genetlink.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index bee91a7527a5..6efb0e9036b5 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c | |||
@@ -265,29 +265,6 @@ static void __genl_unregister_mc_group(struct genl_family *family, | |||
265 | grp->family = NULL; | 265 | grp->family = NULL; |
266 | } | 266 | } |
267 | 267 | ||
268 | /** | ||
269 | * genl_unregister_mc_group - unregister a multicast group | ||
270 | * | ||
271 | * Unregisters the specified multicast group and notifies userspace | ||
272 | * about it. All current listeners on the group are removed. | ||
273 | * | ||
274 | * Note: It is not necessary to unregister all multicast groups before | ||
275 | * unregistering the family, unregistering the family will cause | ||
276 | * all assigned multicast groups to be unregistered automatically. | ||
277 | * | ||
278 | * @family: Generic netlink family the group belongs to. | ||
279 | * @grp: The group to unregister, must have been registered successfully | ||
280 | * previously. | ||
281 | */ | ||
282 | void genl_unregister_mc_group(struct genl_family *family, | ||
283 | struct genl_multicast_group *grp) | ||
284 | { | ||
285 | genl_lock_all(); | ||
286 | __genl_unregister_mc_group(family, grp); | ||
287 | genl_unlock_all(); | ||
288 | } | ||
289 | EXPORT_SYMBOL(genl_unregister_mc_group); | ||
290 | |||
291 | static void genl_unregister_mc_groups(struct genl_family *family) | 268 | static void genl_unregister_mc_groups(struct genl_family *family) |
292 | { | 269 | { |
293 | struct genl_multicast_group *grp, *tmp; | 270 | struct genl_multicast_group *grp, *tmp; |