linux/net/netlink
Stanislaw Gruszka 3de21a8990 genetlink: Add per family bind/unbind callbacks
Add genetlink family bind()/unbind() callbacks when adding/removing
multicast group to/from netlink client socket via setsockopt() or
bind() syscall.

They can be used to track if consumers of netlink multicast messages
emerge or disappear. Thus, a client implementing callbacks, can now
send events only when there are active consumers, preventing unnecessary
work when none exist.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240212161615.161935-2-stanislaw.gruszka@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-02-15 17:49:16 -08:00
..
af_netlink.c netlink: fix potential sleeping issue in mqueue_flush_file 2024-01-23 11:21:18 +01: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: Add per family bind/unbind callbacks 2024-02-15 17:49:16 -08:00
Kconfig
Makefile
policy.c netlink: add variable-length / auto integers 2023-10-20 11:43:35 +01:00