devm_lwmi_tm...ter_notifier(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 the notifier_block struct 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 ✨

  • 0 on success πŸ’–
  • -ENOENT on 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 ✨

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