tb_cfg_get_upstream_port(9)
π
tb_cfg_get_upstream_port(9) π
okay so welcome to the Kernel API Manual entry for tb_cfg_get_upstream_port(9) β yes bestie, the manual name is literally Kernel API Manual, and weβre folding that in right here instead of doing the whole header-line situation π
πΈ NAME πΈ
tb_cfg_get_upstream_port β get upstream port number of switch at route
β¨ SYNOPSIS β¨
int tb_cfg_get_upstream_port (struct tb_ctl *ctl , u64 route );
π«Ά ARGUMENTS π«Ά
ctlβ pointer to the control channel, aka the control-channel pointer bestie πrouteβ the route string of the router, exactly that π
π DESCRIPTION π
So it reads the first dword from the switches TB_CFG_SWITCH config area and returns the port number from which the reply originated. Thatβs the whole vibe: first dword, TB_CFG_SWITCH config area, reply-origin port number. No cap, itβs giving tiny-helper energy π§β¨
π₯ RETURN π₯
Upstream port number on success, or a negative error code on failure. Periodt π
lowkey important: success = upstream port number, failure = negative error code. Keep that energy, bestie.
π 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_reset(9)tb_cfg_read_raw(9)tb_cfg_write_raw(9)
mwah π β sent with love from ./drivers/thunderbolt, dated October 2026, on page tb_cfg_get_upstream_port(9) ππ¦
π¦ 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