tb_switch_clx_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 energy
  • clx β€” 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 πŸ”₯

  • 0 on success πŸŽ‰ slay
  • negative errno otherwise πŸ’€ not slay

🌈 SEE ALSO 🌈

kernel file ./drivers/thunderbolt/clx.c, plus these iconic siblings:


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