thermal: netlink: Add genetlink bind/unbind notifications
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Fri, 23 Feb 2024 15:59:40 +0000 (16:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Mar 2024 13:50:26 +0000 (14:50 +0100)
commitcf580ad490514cca4abbfef710fe4099738abfbd
tree52ac67b131a0aba3207d0e9155fb77f8ae62135f
parentf67cf45deedb118af302534643627ce59074e8eb
thermal: netlink: Add genetlink bind/unbind notifications

Introduce a new feature to the thermal netlink framework, enabling the
registration of sub drivers to receive events via a notifier mechanism.
Specifically, implement genetlink family bind and unbind callbacks to send
BIND and UNBIND events.

The primary purpose of this enhancement is to facilitate the tracking of
user-space consumers by the Intel HFI driver. By leveraging these
notifications, the driver can determine when consumers are present
or absent.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_netlink.c
drivers/thermal/thermal_netlink.h