tb_switch_is_icm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Hey bestie, this is tb_switch_is_icm(9) from the Kernel API Manual ✨ β€” the function that answers is the switch handled by ICM firmware? That's literally the whole vibe. πŸ¦‹

πŸ“œ SYNOPSIS πŸ“œ

bool tb_switch_is_icm (const struct tb_switch *sw );

πŸŽ€ ARGUMENTS πŸŽ€

  • sw β€” the switch to check, periodt πŸ’…

πŸ’« DESCRIPTION πŸ’«

Okay so in case there is a need to differentiate whether ICM firmware or SW CM is handling sw, this function can be called. It is valid to call this after tb_switch_alloc and tb_switch_configure has been called β€” and bestie, that's the latter only for the SW CM case. πŸ‘‘

πŸ”₯ RETURN πŸ”₯

You get true if the switch is handled by ICM, and false if it's handled by software CM. Simple, iconic. πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./drivers/thunderbolt/tb.h, plus all the linked besties:

πŸŽ€ Cute little sign-off: source/version ./drivers/thunderbolt, dated October 2026 β€” tb_switch_is_icm(9) out! Stay iconic, bestie πŸ’œπŸŽ€
πŸ“¦ where this page comes from