tb_switch_tmu_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_switch_tmu_disable(9) β€” like, the Kernel API Manual, bestie

okay so real talk, this is a page from the Kernel API Manual and it's all about turning a TMU off. that's it. that's the whole vibe. let's get into it ✨


🌸 NAME 🌸

tb_switch_tmu_disable β€” Disable TMU of a switch

like, the whole entire point: you got a switch, it's got a TMU, and you want it off. this is the function for that. slay.


πŸŽ€ SYNOPSIS πŸŽ€

int tb_switch_tmu_disable (struct tb_switch *sw );

she takes one arg and gives you back an int. short, sweet, iconic.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sw β€” Switch whose TMU to disable

that's your switch right there. the one whose TMU is getting the off treatment. hand her over 🫢


✨ DESCRIPTION ✨

Turns off TMU of sw if it is enabled. If not enabled does nothing.

okay so this is genuinely the chillest function ever?? like if the TMU is on, she turns it off. if it's already off, she literally does nothing. no drama, no error, no nothing. quiet quitting energy fr fr πŸ’€

no cap, that's the whole description. she's not complicated. she's just a girl.


πŸ”₯ RETURN πŸ”₯

  • 0 on success
  • negative errno otherwise

so like, zero means we ate and left no crumbs πŸ‘‘. anything negative means something went sideways and you're getting an errno back. check it, bestie, don't just ignore the return value 😭


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/thunderbolt/tmu.c β€” that's where all the TMU lore lives, go read it if you're obsessed like me:


lowkey a warning-free page, no bugs noted, no deprecated nonsense. just a clean little toggle. we love to see it 🌈

and that's the whole page, bestie! mwah πŸ’– this gem lives in ./drivers/thunderbolt, and it was dated October 2026 β€” so yeah, she's from the future, main character energy only β­πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from