SSAM_DEFINE_SYNC_REQUEST_N(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ NAME πŸ’…

SSAM_DEFINE_SYNC_REQUEST_N β€” bestie, this is straight from the Kernel API Manual, section 9, and it's the macro that defines a synchronous SAM request function with neither argument nor return value. Iconic zero-arg, zero-return behavior. πŸŽ€

✨ SYNOPSIS ✨

SSAM_DEFINE_SYNC_REQUEST_N (name , spec... );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the name of the generated function. That's its whole identity, no cap.
  • spec β€” the specification (struct ssam_request_spec) that defines the request. It's giving request recipe card. πŸ“

πŸ’– DESCRIPTION πŸ’–

So this macro defines a function that executes the synchronous SAM request specified by spec, and the request has neither argument nor return value. The generated function handles setting up the request struct and buffer allocation, plus executing the request itself, and it returns once the request has been fully completed. The required transport buffer will be allocated on the stack β€” yes bestie, stack, for real. 🫢

The generated function is defined as static int name(struct ssam_controller *ctrl). It returns the status of the request, which is zero on success and negative on failure. The ctrl parameter is the controller via which the request is being sent. Slay. 🌈

Refer to ssam_request_do_sync_onstack for more details on the behavior of the generated function.

🌸 SEE ALSO 🌸


πŸ’– That's the whole page, bestie β€” source/version ./include/linux/surface_aggreg..., dated October 2026. Mwah! πŸ’…πŸŽ€

πŸ“¦ where this page comes from