STRUCT SDTX_BASE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the Kernel API Manual β€” this is literally the struct sdtx_base_info page and it's giving "tiny struct, big responsibilities". ✨

🌸 NAME 🌸

struct sdtx_base_info β€” describes if and what type of base is connected. that's it, that's the whole job, and it ate. πŸ’…


✨ SYNOPSIS ✨

struct sdtx_base_info {
    __u16 state;
    __u16 base_id;
 };

two __u16 fields, zero drama, absolutely iconic. πŸŽ€


🫢 Members 🫢

  • state β€” the state of the connection, aka the vibe check of your base. valid values are SDTX_BASE_DETACHED, SDTX_BASE_ATTACHED, and SDTX_DETACH_NOT_FEASIBLE (that last one is when a base is attached but a low clipboard battery prevents detachment β€” yes literally, the battery said "nope, not today" 😭). any other values are currently reserved, so don't come for them.
  • base_id β€” the type of base connected. zero if no base is connected. that's the whole thing, fr fr β€” no base, no id. πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯

  • the kernel file ./include/uapi/linux/surface_aggregator/dtx.h
  • enum sdtx_device_mode(9)
  • struct sdtx_event(9)
  • enum sdtx_event_code(9)

go read those too, iykyk πŸ‘‘


bestie reminder: state has exactly those valid values and everything else is reserved, so please don't invent your own. no cap. 🫢

and that's the page! πŸŽ€ source/version teaser: this one's filed under ./include/uapi/linux/surface_a... and it's stamped October 2026 β€” so yeah, certified fresh, struct sdtx_base_info(9), see you in the group chat πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from