scmi_put_handler_unlocked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scmi_put_handler_unlocked(9) β€” like, the kernel API manual, bestie ✨

okay so first things first, the manual name is scmi_put_handler_unlocked(9) and no we are not skipping that, it's literally the whole point of this page πŸŽ€ this is a kernel API manual and it's about putting an event handler β€” yes that's the NAME, and yes "put" here means putting it down, not putting it on, stay with me 🫢


✨ SYNOPSIS ✨

bool scmi_put_handler_unlocked (struct scmi_notify_instance *ni , struct
       scmi_event_handler *hndl );

like look at her πŸ‘‘ returns a bool, takes two things, that's the whole vibe check.


🌸 ARGUMENTS 🌸

  • ni β€” a reference to the notification instance you wanna use, like your little handle on the notification world πŸ¦‹
  • hndl β€” the event handler you're acting upon, bestie, this is the one getting the treatment πŸ’…

πŸ’– DESCRIPTION πŸ’–

okay so picture this: you've already got exclusive access to the registered handlers hashtable πŸ‘ β€” that's on you, not on this function β€” and now you update the refcount. and then, if hndl is no more in use by anyone (like, zero girlies holding it), you:

  • ask for events' generation disabling πŸ”₯
  • unregister and free the handler itself πŸ’€

not me doing cleanup arc, but honestly? iconic. this is the function that closes the tab when the last person leaves the group chat 🫢


🧚 CONTEXT 🧚

she assumes all the proper locking has been managed by the caller. that's you. yes, you. no cap, this function is not doing the locking for you, so don't come for her when it goes sideways πŸ™ˆ

fr fr, read that again: the caller handles the locking. this is _unlocked, it's in the name, iykyk πŸ’…

⭐ RETURN ⭐

Returns true if the handler was freed (meaning users dropped to zero) πŸŽ‰ otherwise not, and that's your answer, periodt.


🌈 SEE ALSO 🌈

the whole friend group, honestly. go say hi:


and that's the page, bestie!! πŸŽ€ this lil beauty lives at ./drivers/firmware/arm_scmi and she's dated October 2026 β€” yes, 2026, she's booked and busy πŸ’œ mwah, go free some handlers, ily 🫢✨

πŸ“¦ where this page comes from