ssam_notifier_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ssam_notifier_register - Register an event notifier.

okay so bestie, welcome to ssam_notifier_register(9) from the Kernel API Manual πŸ’…βœ¨


✨ SYNOPSIS ✨

int ssam_notifier_register (struct ssam_controller *ctrl , struct
       ssam_event_notifier *n );

🫢 ARGUMENTS 🫢

  • ctrl β€” the controller to register the notifier on.
  • n β€” the event notifier to register.

🌸 DESCRIPTION 🌸

okay so here’s the tea, bestie: this registers an event notifier. The usage counter of the associated SAM event gets incremented only if the notifier is not marked as an observer. If the event is not marked as an observer and is currently not enabled, it will be enabled during this call. If the notifier is marked as an observer, no attempt will be made at enabling any event and no reference count will be modified.

Notifiers marked as observers do not need to be associated with one specific event β€” i.e. as long as no event matching is performed, only the event target category needs to be set. πŸ¦‹

πŸ’€ RETURN πŸ’€

  • Returns zero on success.
  • Returns -ENOSPC if there have already been INT_MAX notifiers for the event ID/type associated with the notifier block registered.
  • Returns -ENOMEM if the corresponding event entry could not be allocated.
  • If this is the first time that a notifier block is registered for the specific associated event, returns the status of the event-enable EC-command.

🌈 SEE ALSO 🌈

okay that’s the whole page bestie πŸ’œ β€” footer check: source/version ./drivers/platform/surface/agg..., dated October 2026 🌸✨

πŸ“¦ where this page comes from