scmi_notifier_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scmi_notifier_unregister πŸ’…

okay bestie, welcome to the Kernel API Manual β€” today's main character is scmi_notifier_unregister, and honestly? she's the cleanup queen we all need. ✨


πŸŽ€ NAME πŸŽ€

scmi_notifier_unregister β€” unregister a notifier_block for an event, aka the breakup text for your callback πŸ’”


🌸 SYNOPSIS 🌸

int scmi_notifier_unregister (const struct scmi_handle *handle , u8
proto_id , u8 evt_id , const u32 *src_id , struct notifier_block *nb );

that's the whole vibe, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • handle β€” the handle that identifies the platform instance you're unregistering this callback against. like, which platform's party are we leaving, ykwim?
  • proto_id β€” the protocol ID. u8. yes girl, a whole u8.
  • evt_id β€” the event ID. also u8. slay.
  • src_id β€” the source ID. it's a const u32 * pointer, so pls don't go mutating it πŸ™ˆ
  • nb β€” the actual notifier_block you're unregistering. the one getting kicked out of the group chat πŸ’€

πŸ’– DESCRIPTION πŸ’–

so what does she actually do? she takes care πŸ’… to unregister the provided nb from the notification chain that's associated with the specified event. chain membership revoked, periodt.

and THEN β€” and this is the iconic part β€” if there are no more users left for that event handler, she also frees the associated event handler structures. she's not just cleaning up her own mess, she's doing a full room reset when the last person leaves the party. 🧹✨

⚠️ heads up bestie: this freeing situation could possibly cause disabling of the event's generation at the platform level. so like, lowkey a bigger deal than it sounds. don't say I didn't warn you 🫢

⭐ RETURN ⭐

0 on success. that's it, that's the whole return. zero equals happy. 🌈


πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, go read the source if you want the deep lore πŸ’œ

βœ¨πŸ’… mwah πŸ’…βœ¨

β€” sourced from ./drivers/firmware/arm_scmi, dated October 2026, brought to you by the scmi_notifier_unregister(9) girlies πŸŽ€πŸ¦‹πŸŒΈπŸ”₯

πŸ“¦ where this page comes from