STRUCT SDTX_BASE_INFO(9)
π 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 areSDTX_BASE_DETACHED,SDTX_BASE_ATTACHED, andSDTX_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
- 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