SSAM_DEFINE_...EQUEST_MD_WR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, we're in the Kernel API Manual, section 9, and the page title is SSAM_DEFINE_SYNC_REQUEST_MD_WR(9). The actual name is SSAM_DEFINE_SYNC_REQUEST_MD_WR β€” and it defines a synchronous multi-device SAM request function with both an argument and a return value. Slay. ✨

🌸 SYNOPSIS 🌸

SSAM_DEFINE_SYNC_REQUEST_MD_WR (name , atype , rtype , spec... );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the name of the generated function. You pick it, it's giving main character energy. πŸ‘‘
  • atype β€” the type of the request's argument.
  • rtype β€” the type of the request's return value.
  • spec β€” the specification (a struct ssam_request_spec_md) that defines the request. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this definition creates a function that executes the synchronous SAM request specified by spec. That request takes an argument of type atype and has a return value of type rtype. Device specifying parameters are not hard-coded β€” instead they must be provided to the function. The generated function handles setting up the request and response structs, buffer allocation, and executing the request itself, and it returns once the request has been fully completed. The required transport buffer will be allocated on the stack. No cap, it's all handled. 🫢

The generated function is defined as:

static int name(struct ssam_controller *ctrl, u8 tid, u8 iid, const atype *arg, rtype *ret)

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 sent, tid is the target ID for the request, and iid is the instance ID. The request argument is specified via the arg pointer. The request's return value is written to the memory pointed to by the ret parameter. Literally so clean. πŸ’…

For more details on the behavior of the generated function, refer to ssam_request_do_sync_onstack. πŸ¦‹

🌈 SEE ALSO 🌈

Kernel file: ./include/linux/surface_aggregator/controller.h

Then the whole see-also squad, bestie:


Cute sign-off time: this page is from source/version ./include/linux/surface_aggreg..., dated October 2026, and the footer title is SSAM_DEFINE_...EQUEST_MD_WR(9). Byeee bestie, go be iconic with your synchronous SAM requests πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from