On Mon, 2022-02-14 at 22:04 +0100, Daniel Lezcano wrote:
The thermal framework implements a netlink notification mechanism toSome minor comments.
be used by the userspace to have a thermal configuration discovery,
trip point changes or violation, cooling device changes
notifications,
etc...
This library provides a level of abstraction for the thermal netlink
notification allowing the userspace to connect to the notification
mechanism more easily. The library is callback oriented.
May be better use some defines instead of returning "-1" for error
conditions.
Ah, yes. I'll add it.+ * Low level netlinkTo complete API, don't we need nl_unsubscribe which calls
+ */
+extern int nl_subscribe_thermal(struct nl_sock *nl_sock, struct
nl_cb *nl_cb,
+ const char *group);
+
nl_socket_drop_memberships()?