📚 The Linux Process Journey — “charger-manager”
💡 Newskategorie: Linux Tipps
🔗 Quelle: reddit.com
The “charger_manager” kernel thread is created by a freezable workqueue https://elixir.bootlin.com/linux/latest/source/drivers/power/supply/charger-manager.c#L1749) . Freezable workqueues are basically frozen when the system is moved to a suspend state (https://lwn.net/Articles/403891/).
Based on the kernel source code “charger_manager” is responsible for monitoring the health (like temperature monitoring) of the battery and controlling the charger while the system is suspended to memory (https://elixir.bootlin.com/linux/latest/source/drivers/power/supply/charger-manager.c) . Also, the “Charger Manager” kernel module is written by MyungJoo Ham. (https://elixir.bootlin.com/linux/latest/source/drivers/power/supply/charger-manager.c#L1768).
Moreover, the kernel documentation states that the “Charger Manager’’ also helps in giving an aggregated view to userspace in case they are multiple chargers for a battery. In case they are multiple batteries with different chargers on a system, that system would need multiple instances of “Charger Manager” (https://www.kernel.org/doc/html/v5.3/power/charger-manager.html) .
On my Ubuntu VM (22.04.1 LTS) this kernel module is not compiled as a separate “*.ko” file. It is compiled into the kernel itself (builtin), as you can see in the output of “modinfo” in the screenshot below.
charger_manager is a builtin kernel module (Ubuntu 22.04.1 LTS)
[link] [comments] ...