tb_cfg_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

tb_cfg_reset β€” send a reset packet and wait for a response. This is the Kernel API Manual entry, and yes bestie, we’re getting into it πŸ’….

✨ SYNOPSIS ✨

struct tb_cfg_result tb_cfg_reset (struct tb_ctl *ctl , u64 route );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctl β€” Control channel pointer. That’s the plug, basically πŸ”Œ
  • route β€” Router string for the router to send reset. Tell it where to go, bestie 🫢

πŸ’… DESCRIPTION πŸ’…

okay so here’s the tea: if the switch at route is incorrectly configured then we will not receive a reply (even though the switch will reset). The caller should check for -ETIMEDOUT and attempt to reconfigure the switch.

🚨 lowkey important: that ghosting-by-switch situation is exactly why you check -ETIMEDOUT and try reconfiguring β€” no cap.

πŸ¦‹ RETURN πŸ¦‹

You get a struct tb_cfg_result with a non-zero err field if error has occurred. That’s the whole return vibe.

🌈 SEE ALSO 🌈

Kernel file ./drivers/thunderbolt/ctl.c, struct tb_ctl(9), tb_cfg_request_alloc(9), tb_cfg_request_get(9), tb_cfg_request_put(9), tb_cfg_request(9), tb_cfg_request_cancel(9), tb_cfg_request_sync(9), tb_ctl_alloc(9), tb_ctl_free(9), tb_ctl_start(9), tb_ctl_stop(9), tb_cfg_ack_notification(9), tb_cfg_ack_plug(9), tb_cfg_read_raw(9), tb_cfg_write_raw(9), tb_cfg_get_upstream_port(9) β€” go read these next, bestie 🫢.


xoxo, your Kernel API Manual bestie πŸ’– β€” footer vibes: source/version path ./drivers/thunderbolt, date October 2026, and this icon is tb_cfg_reset(9). periodt πŸ’…

πŸ“¦ where this page comes from