STRUCT TB_SERVICE_DRIVER(9)
π struct tb_service_driver(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for struct tb_service_driver(9), aka the Thunderbolt service driver π¦
β¨ NAME β¨
struct tb_service_driver β Thunderbolt service driver. that's it, that's the whole vibe. it's the struct you fill out when you want your driver to hang out with Thunderbolt services π
πΈ SYNOPSIS πΈ
struct tb_service_driver {
struct device_driver driver;
int (*probe)(struct tb_service *svc);
void (*remove)(struct tb_service *svc);
void (*shutdown)(struct tb_service *svc);
const struct tb_service_id *id_table;
};
like, copy that shape exactly, no cap π
π Members π
okay so here's who's who in this little friend group:
driverβ the driver structure. yep, the plain ol'struct device_driverthat lives inside, main character energy but make it infrastructure πprobeβ called when the driver is probed π₯ this is where your driver wakes up and goes "hiii i'm here"removeβ called when the driver is removed. it's optional, so you can totally skip it if you want πshutdownβ called at shutdown time to stop the service. also optional, bestie βid_tableβ table of service identifiers the driver supports π this is your driver's "these are MY people" list
π¦ SEE ALSO π¦
- Kernel file
./include/linux/thunderbolt.h enum tb_security_level(9)struct tb(9)struct tb_property_dir(9)struct tb_property(9)enum tb_link_width(9)struct tb_xdomain(9)struct tb_protocol_handler(9)struct tb_service(9)struct tb_nhi(9)struct tb_ring(9)enum ring_desc_flags(9)struct ring_frame(9)tb_ring_rx(9)tb_ring_tx(9)tb_ring_dma_device(9)
π fr fr go read those too, they're all friends of this page and they all live over in ./include/linux β you'll find them hanging out there.
and that's the whole page, bestie!! π mwah π this one's from ./include/linux, dated October 2026, and it's literally still filed under struct tb_service_driver(9) in the Kernel API Manual β slay β¨π«Άπ
π¦ 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