SSAM_DEFINE_SYNC_REQUEST_N(9)
π 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 πΈ
- Kernel file
./include/linux/surface_aggregator/controller.h enum ssam_event_flags(9)struct ssam_event(9)enum ssam_request_flags(9)struct ssam_request(9)struct ssam_response(9)struct ssam_request_sync(9)ssam_request_sync_set_data(9)ssam_request_sync_set_resp(9)ssam_request_sync_wait(9)ssam_request_do_sync_onstack(9)__ssam_retry(9)ssam_retry(9)struct ssam_request_spec(9)struct ssam_request_spec_md(9)SSAM_DEFINE_SYNC_REQUEST_W(9)SSAM_DEFINE_SYNC_REQUEST_R(9)SSAM_DEFINE_SYNC_REQUEST_WR(9)SSAM_DEFINE_SYNC_REQUEST_MD_N(9)SSAM_DEFINE_SYNC_REQUEST_MD_W(9)SSAM_DEFINE_SYNC_REQUEST_MD_R(9)SSAM_DEFINE_SYNC_REQUEST_MD_WR(9)enum ssam_notif_flags(9)struct ssam_notifier_block(9)ssam_notifier_from_errno(9)ssam_notifier_to_errno(9)struct ssam_event_registry(9)struct ssam_event_id(9)enum ssam_event_mask(9)SSAM_EVENT_REGISTRY(9)enum ssam_event_notifier_flags(9)struct ssam_event_notifier(9)ssam_notifier_unregister(9)
π That's the whole page, bestie β source/version ./include/linux/surface_aggreg..., dated October 2026. Mwah! π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms