Message ID | 20240408125753.470419-2-amorenoz@redhat.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: openvswitch: Add sample multicasting. | expand |
On Mon, 8 Apr 2024 14:57:40 +0200 Adrian Moreno wrote: > Both "__genl_sk_priv_get" and "genl_sk_priv_get" are useful functions to > handle private pointers attached to genetlink sockets. > Export them so they can be used in modules. > > Signed-off-by: Adrian Moreno <amorenoz@redhat.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org>
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index feb54c63a116..beafa415a9f5 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -726,6 +726,7 @@ void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk) return ERR_PTR(-EINVAL); return xa_load(family->sock_privs, (unsigned long) sk); } +EXPORT_SYMBOL(__genl_sk_priv_get); /** * genl_sk_priv_get - Get family private pointer for socket @@ -764,6 +765,7 @@ void *genl_sk_priv_get(struct genl_family *family, struct sock *sk) } return priv; } +EXPORT_SYMBOL(genl_sk_priv_get); /** * genl_register_family - register a generic netlink family
Both "__genl_sk_priv_get" and "genl_sk_priv_get" are useful functions to handle private pointers attached to genetlink sockets. Export them so they can be used in modules. Signed-off-by: Adrian Moreno <amorenoz@redhat.com> --- net/netlink/genetlink.c | 2 ++ 1 file changed, 2 insertions(+)