STRUCT SSAM_CDEV_EVENT(9)
πΈ NAME πΈ
Okay bestie, gather round: struct ssam_cdev_event is the SSAM event sent by the EC. That's the whole name vibe. This lil page is from the struct ssam_cdev_event(9) entry in the Kernel API Manual, and we're about to get into every field like it's a group-chat screenshot. π
β¨ SYNOPSIS β¨
Here's the struct in all its glory β exact tokens, no cap:
struct ssam_cdev_event {
__u8 target_category;
__u8 target_id;
__u8 command_id;
__u8 instance_id;
__u16 length;
__u8 data[];
};
π Members π
These are the members, and yes, we're listing every single one. Obsessed with the consistency. π«Ά
target_categoryβ target category of the event source. For the full lore, seeenum ssam_ssh_tc. iykyk.target_idβ target ID of the event source. Slay, identifier.command_idβ command ID of the event. The command in question has a whole ID, periodt.instance_idβ instance ID of the event source. Another ID, another icon.lengthβ length of the event payload in bytes. Count the bytes, bestie.dataβ event payload data. The actual payload goodies live here. π
π SEE ALSO π
- Kernel file
./include/uapi/linux/surface_aggregator/cdev.henumssam_cdev_request_flags(9),struct ssam_cdev_request(9),struct ssam_cdev_notifier_desc(9),struct ssam_cdev_event_desc(9).
And that's the tea π«: source/version is ./include/uapi/linux/surface_a..., dated October 2026, and the page is struct ssam_cdev_event(9). Byeee, go read the kernel docs bestie πβ¨
π¦ 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