tb_switch_clx_enable(9)
β¨ tb_switch_clx_enable(9) β¨
okay bestie, welcome to the Kernel API Manual π«Ά this one's a kernel function page, section 9, and it's literally about turning CLx on for a Thunderbolt router's upstream port. yes it's as niche as it sounds and yes we're gonna slay it π
πΈ NAME πΈ
tb_switch_clx_enable β enable CLx on the upstream port of a specified router π¦
π SYNOPSIS π
int tb_switch_clx_enable(struct tb_switch *sw, unsigned int clx);
π ARGUMENTS π
swβ the router you wanna enable CLx for π like, the actual switch, main character energyclxβ which CLx state to enable β the vibe you're requesting
π§ DESCRIPTION π§
so here's the tea β CLx only gets enabled if both sides of the link support CLx. that's the first vibe check.
it also has to pass these conditions, no cap:
- neither side of the link is configured as two single lane links π
- the link is not an inter-domain link π«
and if you want the complete set of conditions, they're all written down in CM Guide 1.0 section 8.1 β go read it, iykyk πβ¨
π₯ RETURN π₯
0on success π slay- negative
errnootherwise π not slay
π SEE ALSO π
kernel file ./drivers/thunderbolt/clx.c, plus these iconic siblings:
tb_port_clx_is_enabled(9)tb_switch_clx_is_supported(9)tb_switch_clx_init(9)tb_switch_clx_disable(9)
ngl these functions are a whole friend group and tb_switch_clx_enable is just the one holding the aux cord π§
and that's the page bestie!! π from ./drivers/thunderbolt, dated October 2026 β mwah, go enable some CLx ππ§ββοΈ
π¦ 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