linux/net/netlink
Jiri Pirko a731132424 genetlink: introduce per-sock family private storage
Introduce an xarray for Generic netlink family to store per-socket
private. Initialize this xarray only if family uses per-socket privs.

Introduce genl_sk_priv_get() to get the socket priv pointer for a family
and initialize it in case it does not exist.
Introduce __genl_sk_priv_get() to obtain socket priv pointer for a
family under RCU read lock.

Allow family to specify the priv size, init() and destroy() callbacks.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2023-12-19 15:31:40 +01:00
..
af_netlink.c rtnetlink: introduce nlmsg_new_large and use it in rtnl_getlink 2023-11-18 20:18:25 -08:00
af_netlink.h netlink: convert nlk->flags to atomic flags 2023-08-13 12:23:19 +01:00
diag.c netlink: fill in missing MODULE_DESCRIPTION() 2023-11-03 11:42:48 +00:00
genetlink.c genetlink: introduce per-sock family private storage 2023-12-19 15:31:40 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile netlink: add infrastructure to expose policies to userspace 2020-04-30 17:51:42 -07:00
policy.c netlink: add variable-length / auto integers 2023-10-20 11:43:35 +01:00