[PATCH 06/39] genetlink: export genl_unregister_mc_group()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-11-26 at 14:40 -0800, Inaky Perez-Gonzalez wrote:
> Add an EXPORT_SYMBOL() to genl_unregister_mc_group(), to allow
> unregistering groups on the run. EXPORT_SYMBOL_GPL() is not used as
> the rest of the functions exported by this module (eg:
> genl_register_mc_group) are also not _GPL().
> 
> Cleanup is currently done when unregistering a family, but there is
> no way to unregister a single multicast group due to that function not
> being exported. Seems to be a mistake as it is documented as for
> external consumption.
> 
> This is needed by the WiMAX stack to be able to cleanup unused mc
> groups.

Haven't looked at the users, but you definitely need that as soon as you
need to unregister a group on the fly, so obviously

Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

> Signed-off-by: Inaky Perez-Gonzalez <inaky@xxxxxxxxxxxxxxx>
> Cc: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
> Cc: Thomas Graf <tgraf@xxxxxxx>
> ---
>  net/netlink/genetlink.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
> index 3e1191c..1d3dd30 100644
> --- a/net/netlink/genetlink.c
> +++ b/net/netlink/genetlink.c
> @@ -225,6 +225,7 @@ void genl_unregister_mc_group(struct genl_family *family,
>  	__genl_unregister_mc_group(family, grp);
>  	genl_unlock();
>  }
> +EXPORT_SYMBOL(genl_unregister_mc_group);
>  
>  static void genl_unregister_mc_groups(struct genl_family *family)
>  {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://lists.moblin.org/pipermail/wimax/attachments/20081127/7bf4e53c/attachment.bin

[Index of Archives]     [Linux Kernel]     [Linux Wireless]     [Linux Bluetooth]     [Linux Netdev]     [Linux Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux