STRUCT SSAM_REQUEST_SPEC(9)
π struct ssam_request_spec(9) β a Kernel API Manual moment β¨
okay bestie, listen up, because this one is literally the blue-print for a SAM request and it's giving "template energy" in the best way π«Ά
β¨ NAME β¨
struct ssam_request_spec β the Blue-print specification of a SAM request. yes, with a capital B and a hyphen, that's how the kernel rolls π
πΈ SYNOPSIS πΈ
struct ssam_request_spec {
u8 target_category;
u8 target_id;
u8 command_id;
u8 instance_id;
u8 flags;
};
ngl this struct is tiny but she is important, so let's meet the members one by one π
π¦ Members π¦
target_categoryβ the Category of the request's target. peepenum ssam_ssh_tcfor the deets β¨target_idβ the ID of the request's target, straightforward icon behavior πcommand_idβ the Command ID of the request. that's her whole thing πinstance_idβ the Instance ID of the request's target. yes it's separate fromtarget_id, don't come for me πflagsβ the Flags for the request. go look atenum ssam_request_flagsfor the full menu π
π Description π
so Blue-print specification for a SAM request. this struct describes the unique static parameters of a request (i.e. its type) without specifying any of its instance-specific data (e.g. the payload). think of it as the vibe check of the request, not the whole personality π
it's literally intended to be used as the base for defining simple request functions via the SSAM_DEFINE_SYNC_REQUEST_x family of macros. that's the whole point, that's the assignment, periodt π₯
π 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_md(9)SSAM_DEFINE_SYNC_REQUEST_N(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)
yeah that's a lot of cross-refs, but she's connected, iykyk π go read them, they're all iconic in their own right π§
k bye bestie, this page came from ./include/linux/surface_aggreg... and it's dated October 2026 β mwah, slay, go write some sync requests π
πβ
π¦ 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