tb_switch_clx_disable(9)
π tb_switch_clx_disable(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for tb_switch_clx_disable, and honestly? it's giving "one job, does it well." no cap. π
β¨ NAME β¨
tb_switch_clx_disable β Disable CLx on upstream port of specified router
like... that's the whole vibe. it turns CLx off. on the upstream port. of the router you hand it. periodt. π
π¦ SYNOPSIS π¦
int tb_switch_clx_disable (struct tb_switch *sw );
yup, that's the whole signature, copy it exactly, don't get creative with it π
πΈ ARGUMENTS πΈ
swβ Router to disable CLx for. that's it. that's the parameter. hand it the router, get on with your day. π«Ά
π DESCRIPTION π
Disables all CL states of the given router. all of them. not some, not "the ones you feel like" β every single one. π₯
and here's the cute part: you can call this on any router. literally any of them. and if the states were not enabled already, it just... does nothing. no drama, no error, no fuss. it just vibes and returns. β¨
lowkey the most well-adjusted function in the whole file tbh π
β RETURN β
Returns the CL states that were disabled, or a negative errno otherwise.
so: a happy little bitmask of what got turned off π, or a negative errno if something went sideways π β don't ignore the negative case, bestie, i'm serious.
π SEE ALSO π
- Kernel file
./drivers/thunderbolt/clx.c tb_port_clx_is_enabled(9)tb_switch_clx_is_supported(9)tb_switch_clx_init(9)tb_switch_clx_enable(9)
go read those too, iykyk π they're the whole friend group fr fr
okay that's the page!! π§ mwah π
this lil masterpiece lives in ./drivers/thunderbolt and it's dated October 2026 β mark your calendars, screenshot it, frame it, whatever, it's iconic now πΈπβ¨
π¦ 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