SSAM_DEFINE...REQUEST_CL_W(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… SSAM_DEFINE...REQUEST_CL_W(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for SSAM_DEFINE_SYNC_REQUEST_CL_W β€” this one is literally all about generating a synchronous client-device SAM request function with an argument. no cap, it's a macro moment. πŸ’…


🌸 NAME 🌸

SSAM_DEFINE_SYNC_REQUEST_CL_W β€” define a synchronous client-device SAM request function with an argument. iconic.

✨ SYNOPSIS ✨

SSAM_DEFINE_SYNC_REQUEST_CL_W (name , atype , spec... );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the name of the generated function.
  • atype β€” the type of the request's argument.
  • spec β€” the specification (struct ssam_request_spec_md) that defines the request.

πŸ¦‹ DESCRIPTION πŸ¦‹

so this macro defines a function that executes the synchronous SAM request specified by spec, and that request takes an argument of type atype and has no return value. the device specifying parameters are not hard-coded β€” instead they're provided via the client device, specifically its UID, supplied when you call this function. the generated function handles setting up the request struct, buffer allocation, and execution of the request itself, and it returns once the request has been fully completed. the required transport buffer will be allocated on the stack. stack allocation bestie, we love to see it. πŸ’–

the generated function is defined as static int name(struct ssam_device *sdev, const atype *arg) and returns the status of the request, which is zero on success and negative on failure. the sdev parameter specifies both the target device of the request and, by association, the controller via which the request is sent. the request's argument is specified via the arg pointer. 🫢

for more details on the behavior of the generated function, refer to ssam_request_do_sync_onstack. periodt.

🌈 SEE ALSO 🌈

the kernel file is ./include/linux/surface_aggregator/device.h, and the whole reference squad is:


mwah πŸ’‹ β€” source/version: ./include/linux/surface_aggreg...; date: October 2026; page name in the footer: SSAM_DEFINE...REQUEST_CL_W(9). that's the whole page, bestie 🫢

πŸ“¦ where this page comes from