tb_switch_clx_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘

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