ssam_notifier_unregister(9)
π ssam_notifier_unregister(9) β Kernel API Manual β¨
okay bestie, so this is a kernel API manual page, and it's about ssam_notifier_unregister(9) β the function that takes an event notifier off a Surface Aggregator controller. It's giving cleanup era and honestly it's lowkey iconic. π
πΈ NAME πΈ
ssam_notifier_unregister β unregister an event notifier. literally what it says on the tin, no cap. π
β¨ SYNOPSIS β¨
int ssam_notifier_unregister (struct ssam_controller *ctrl , struct
ssam_event_notifier *n );
two args, one int back, periodt. π«Ά
π¦ ARGUMENTS π¦
ctrlβ the controller the notifier has been registered on. like, the one it's currently in a situationship with. you gotta name it or the unregistration won't know where to happen πnβ the event notifier to unregister. this is the one getting the β¨ it's not you it's me β¨ talk.
π₯ DESCRIPTION π₯
so you're unregistering an event notifier. slay. here's the tea though, and it's important tea:
the function decrements the usage counter of the associated SAM event β but ONLY if the notifier is not marked as an observer. if it is an observer, no counter decrementing happens. iykyk. π
and then, if the usage counter reaches zero? the event gets disabled. gone. powered down. the whole vibe check failed and the event left the chat. π
π RETURN π
Returns zero on success β bestie behaviour, we love to see it π
. plus:
-ENOENTβ if the given notifier block has not been registered on the controller. awkward. you can't break up with someone you were never dating, bestie π- If the given notifier block was the last one associated with its specific event, it returns the status of the event-disable EC-command. so whatever that EC-command says, that's what you get. main character return value energy fr fr β
π SEE ALSO π
okay this list is LONG and we are NOT skipping any of it, because every single one of these is a friend of the family:
Kernel file ./include/linux/surface_aggregator/controller.h β that's the file, keep it exactly like that π§
then the crew:
enum ssam_event_flags(9)struct ssam_event(9)enum ssam_request_flags(9)struct ssam_request(9)struct ssam_response(9)struct ssam_request_sync(9)ssam_request_sync_set_data(9)ssam_request_sync_set_resp(9)ssam_request_sync_wait(9)ssam_request_do_sync_onstack(9)__ssam_retry(9)ssam_retry(9)struct ssam_request_spec(9)struct ssam_request_spec_md(9)SSAM_DEFINE_SYNC_REQUEST_N(9)SSAM_DEFINE_SYNC_REQUEST_W(9)SSAM_DEFINE_SYNC_REQUEST_R(9)SSAM_DEFINE_SYNC_REQUEST_WR(9)SSAM_DEFINE_SYNC_REQUEST_MD_N(9)SSAM_DEFINE_SYNC_REQUEST_MD_W(9)SSAM_DEFINE_SYNC_REQUEST_MD_R(9)SSAM_DEFINE_SYNC_REQUEST_MD_WR(9)enum ssam_notif_flags(9)struct ssam_notifier_block(9)ssam_notifier_from_errno(9)ssam_notifier_to_errno(9)struct ssam_event_registry(9)struct ssam_event_id(9)enum ssam_event_mask(9)SSAM_EVENT_REGISTRY(9)enum ssam_event_notifier_flags(9)struct ssam_event_notifier(9)
see? told you we weren't skipping any. ate and left no crumbs π
π quick vibe check reminder: if the notifier is marked as an observer, the usage counter does not get decremented β that's straight from the description, don't @ me.
and that's the whole page, bestie! this came from the kernel source tree at ./include/linux/surface_aggreg... and it's dated October 2026 β so yeah, future vibes β¨π¦. go forth and unregister responsibly. ππ
π¦ 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