devm_lwmi_tm...ter_notifier(9)
π devm_lwmi_tm_unregister_notifier π
okay bestie, so this is a page out of the Kernel API Manual and it's lowkey iconic β it's the devm-flavored cleanup twin of the thermal mode notifier stuff, and we're gonna walk through it together. no cap. π
β¨ NAME β¨
devm_lwmi_tm_unregister_notifier β the girl whose whole job is removing a notifier from the blocking notifier chain. that's it, that's the vibe. π¦
β¨ SYNOPSIS β¨
void devm_lwmi_tm_unregister_notifier (void *data );
like, that's the whole signature. yes the spacing is a little feral, we don't fix it, we respect it. π
β¨ ARGUMENTS β¨
dataβ a void pointer to thenotifier_blockstruct that gets registered. so it's the notifier block itself you're passing in, pointing at it, void-style. iykyk π«Ά
β¨ DESCRIPTION β¨
so what actually happens: this calls lwmi_tm_unregister_notifier to unregister the notifier block from the thermal mode notifier chain. boom. done. slay. π₯
that's genuinely the whole plot β it's the cleanup baddie that takes your notifier block out of the chain so it stops getting called. main character energy of "you're done here bestie, go home." π
β¨ RETURN β¨
0on success π-ENOENTon error π
(yes, the synopsis says void β we report it exactly like the page does, we don't editorialize. ngl, the docs said what the docs said.) π
β¨ SEE ALSO β¨
- Kernel file
./drivers/platform/x86/lenovo/wmi-helpers.c lwmi_dev_evaluate_int(9)lwmi_tm_register_notifier(9)lwmi_tm_unregister_notifier(9)devm_lwmi_tm_register_notifier(9)lwmi_tm_notifier_call(9)lwmi_debugfs_create_dir(9)
go read all of those too, they're literally the friend group of this function. πΈ
warning bestie: this is documentation of kernel API behaviour β stick to what the page says and don't go inventing semantics. if you're unregistering notifier blocks in real code, the register/unregister pairing is your bestie, not your enemy. π
and that's the whole page, no notes β¨ sourced from ./drivers/platform/x86/lenovo and dated October 2026 β like a little time capsule from the kernel, periodt. ππ¦π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms