diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-12-16 15:29:57 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-12-19 17:31:40 +0300 |
commit | a731132424adeda4d5383ef61afae2e804063fb7 (patch) | |
tree | 932e63200b540fe31f2dfcd47bdf4e39943304f2 /include/linux/netlink.h | |
parent | 5648de0b1f2b68bffce9bdd49a276607b9a3e3d4 (diff) | |
download | linux-a731132424adeda4d5383ef61afae2e804063fb7.tar.xz |
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>
Diffstat (limited to 'include/linux/netlink.h')
0 files changed, 0 insertions, 0 deletions