Expand description
Netlink socket helpers.
Provides a non-blocking NETLINK_KOBJECT_UEVENT socket for receiving
kernel uevents (power supply changes, hotplug events, etc.).
Functionsยง
- uevent_
drain_ battery - Drain all pending uevent messages; return the last battery
(level_pct, status)seen. - uevent_
open - Open a non-blocking
NETLINK_KOBJECT_UEVENTsocket bound to all kernel groups.