ssam_controller_shutdown(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ssam_controller_shutdown β€” shut down the controller. Okay bestie, this is the ssam_controller_shutdown(9) page from the Kernel API Manual, and it’s lowkey a very important cleanup moment ✨.

✨ SYNOPSIS ✨

void ssam_controller_shutdown (struct ssam_controller *ctrl );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the controller. like, the exact controller you’re shutting down πŸ’….

🌸 DESCRIPTION 🌸

So this function shuts down the controller by flushing all pending requests and stopping the transmitter and receiver threads. boom, cleanup era πŸ”₯.

All requests submitted after this call will fail with -ESHUTDOWN. no cap, that’s the shutdown boundary.

While it is discouraged to do so, this function is safe to use in parallel with ongoing request submission. still, discouraged means discouraged, bestie πŸ™ˆ.

In the course of this shutdown procedure, all currently registered notifiers will be unregistered. It is, however, strongly recommended to not rely on this behavior, and instead the party registering the notifier should unregister it before the controller gets shut down, e.g. via the SSAM bus which guarantees client devices to be removed before a shutdown. healthy boundaries, we love to see it 🫢.

Note that events may still be pending after this call, but, due to the notifiers being unregistered, these events will be dropped when the controller is subsequently destroyed via ssam_controller_destroy. so don’t expect those little guys to show up later πŸ’€.

🚨 Lock check, bestie: this function must be called with the main controller lock held (i.e. by calling ssam_controller_lock). not optional, not cute to skip, periodt πŸ‘‘.

🌈 SEE ALSO 🌈

The page also points at the kernel file and a whole group chat of related symbols β€” all names exactly as written, iykyk πŸ‘€:


okay bye bestie πŸ’– β€” this was ssam_controller_shutdown(9) from the Kernel API Manual; its source/version footer said ./drivers/platform/surface/agg... and it was dated October 2026. mwah 🫢

πŸ“¦ where this page comes from