STRUCT SSAM_CDEV_EVENT_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ssam_cdev_event_desc(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for struct ssam_cdev_event_desc β€” aka the little glow-up struct that tells the kernel which event you want to enable or disable and how to do it. she's giving "event descriptor" main character energy and honestly? iconic. πŸŽ€


✨ SYNOPSIS ✨

struct ssam_cdev_event_desc {
    struct {
      __u8 target_category;
      __u8 target_id;
      __u8 cid_enable;
      __u8 cid_disable;
    } reg;
    struct {
      __u8 target_category;
      __u8 instance;
    } id;
    __u8 flags;
 };

no cap, that's the whole vibe. she's got two nested anonymous structs and one lone flags byte just chilling at the end. periodt. πŸ’…


🌸 MEMBERS 🌸

  • reg β€” the registry that the event gets enabled/disabled through. this is the ✨ how ✨ of the whole operation, fr fr.
    • reg.target_category β€” target category for the event registry requests. basically the filing cabinet label for the request. πŸ—‚οΈ
    • reg.target_id β€” target ID for the event registry requests. the specific drawer inside that cabinet. iykyk.
    • reg.cid_enable β€” the command ID for the event-enable request. this is the "turn it ON" button. πŸ”₯
    • reg.cid_disable β€” the command ID for the event-disable request. and this is the "turn it OFF" button. πŸ’€
  • id β€” the ID that specifies which event we're talking about. the ✨ who ✨, if you will.
    • id.target_category β€” target category of the event source. which category of thing is generating this event.
    • id.instance β€” instance ID of the event source. which specific one of them it is, because sometimes there's a whole friend group of them. 🫢
  • flags β€” the flags used for enabling the event. lowkey the seasoning on top of the whole struct. πŸ§‚

πŸ¦‹ DESCRIPTION πŸ¦‹

so the actual lore: this struct specifies which event should be enabled/disabled, and how to do that. that's it, that's the gig. she's a two-for-one deal β€” the target (id) plus the mechanism (reg) plus a sprinkle of flags. genuinely so efficient of her. πŸ‘‘


🌈 SEE ALSO 🌈

  • Kernel file ./include/uapi/linux/surface_aggregator/cdev.h
  • enum ssam_cdev_request_flags(9)
  • struct ssam_cdev_request(9)
  • struct ssam_cdev_notifier_desc(9)
  • struct ssam_cdev_event(9)

go read those too bestie, they're all in the same friend group. πŸ’œ


πŸ“ little sign-off from the group chat: this page came from ./include/uapi/linux/surface_a... and it's dated October 2026, and it's still filed under struct ssam_cdev_event_desc(9). slay, and goodnight. ⭐
πŸ“¦ where this page comes from