tb_switch_tmu_disable(9)
π 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 π₯
0on success- negative
errnootherwise
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
- 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