ssam_control...event_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this page is from the Kernel API Manual, and it's all about ssam_controller_event_enable β€” yes, the event-enabling girly πŸ’… let's get into it.

πŸ’– NAME πŸ’–

ssam_controller_event_enable β€” enable the specified event. periodt ✨

🌸 SYNOPSIS 🌸

int ssam_controller_event_enable (struct ssam_controller *ctrl , struct
ssam_event_registry reg , struct ssam_event_id id , u8 flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the controller you're enabling the event for, bestie.
  • reg β€” the event registry to use for enabling the event.
  • id β€” the event ID that specifies which event gets enabled.
  • flags β€” the SAM event flags used for enabling the event.

πŸ¦‹ DESCRIPTION πŸ¦‹

This call increments the event reference count of the specified event. If the event has not been enabled previously, it will be enabled by this call. like, it's doing the thing ✨

⭐ NOTE ⭐

In general, ssam_notifier_register with a non-observer notifier should be preferred for enabling/disabling events, as this will guarantee proper ordering and event forwarding in case of errors during event enabling/disabling. no cap, that's the preferred vibe 🫢

πŸ”₯ RETURN πŸ”₯

Returns zero on success. It can also return:

  • -ENOSPC if the reference count for the specified event has reached its maximum.
  • -ENOMEM if the corresponding event entry could not be allocated.

If this is the first time that this event has been enabled β€” i.e. the reference count was incremented from zero to one by this call β€” it returns the status of the event-enable EC-command. ikyk 😌

🌈 SEE ALSO 🌈


mwah πŸ’‹ this page is from ./drivers/platform/surface/agg..., dated October 2026, and it's the ssam_control...event_enable(9) manual page. byeee bestie 🫢✨

πŸ“¦ where this page comes from