scmi_devm_notifier_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scmi_devm_notifier_register(9) β€” from the Kernel API Manual, bestie ✨

okay so, real talk: this one lives in the Kernel API Manual and it's genuinely one of the most "set it and forget it" little helpers in the whole SCMI notification world. It's the managed version of registering a notifier_block for an event β€” and "managed" here is doing a LOT of heavy lifting, so let's get into it πŸŽ€


✨ NAME ✨

scmi_devm_notifier_register β€” managed registration of a notifier_block for an event πŸ’–

like, devres-managed. so you don't have to remember to unregister it yourself. the kernel's got you. main character behavior fr fr.


🌸 SYNOPSIS 🌸

int scmi_devm_notifier_register (struct scmi_device *sdev , u8 proto_id , u8 evt_id , const u32 *src_id , struct notifier_block *nb );

that's the whole vibe check β€” five args, one int back. copy it exactly, don't get creative with it πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sdev β€” a reference to an scmi_device whose embedded struct device is gonna be used for devres accounting. yes, embedded β€” that's the important bit, that inner device is what the cleanup magic hooks onto 🫢
  • proto_id β€” the Protocol ID (a u8, keep it tidy)
  • evt_id β€” the Event ID (also a u8)
  • src_id β€” the Source ID. and here's the cute part: when this is NULL you're registering for events coming from ALL possible sources. all of them. every single one 🌈
  • nb β€” a standard notifier_block to register for the specified event. nothing fancy, just your regular notifier block πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so what it says on the tin: this is a generic devres managed helper to register a notifier_block against a protocol event ✨

that's it. that's the whole description. no cap, the manpage really said "short and iconic" and left. it's giving less is more, and honestly? slay πŸ’…


πŸŽ€ RETURN πŸŽ€

  • 0 on Success ⭐

(that's the only value documented here, so that's the only one I'm telling you about β€” I'm not out here making things up πŸ™ˆ)


πŸ”₯ SEE ALSO πŸ”₯

okay this list is LONG and it's literally the entire supporting cast, so buckle up bestie, here's everybody πŸ“


ngl the un-managed sibling scmi_notifier_register(9) is right there too, so if you ever catch yourself thinking "wait, do I have to unregister this myself?" β€” check which one you actually called, bestie 😭 the devm_ prefix is the whole personality trait here πŸ’€

and that's the page!! mwah πŸ’‹ this little icon was served up from ./drivers/firmware/arm_scmi in October 2026, so go forth and register those notifiers responsibly πŸ‘‘πŸŒˆπŸ’œ

πŸ“¦ where this page comes from