tb_switch_find_cap(9)
π tb_switch_find_cap(9) β Kernel API Manual, bestie edition π¦
okay so this is a page from the Kernel API Manual, and it's literally all about tb_switch_find_cap β a Thunderbolt girlie's best friend. No cap, she's here to hunt down a capability for you. Let's get into it β¨
πΈ NAME πΈ
tb_switch_find_cap β Find switch capability
like, she finds the capability. that's the whole vibe. main character energy fr fr π
π SYNOPSIS π
int tb_switch_find_cap (struct tb_switch *sw , enum tb_switch_cap cap );
yes bestie, that's the exact signature β copy it character for character, don't be out here improvising π
β¨ ARGUMENTS β¨
swβ the switch you wanna find the capability for π«Ά like, this is the girl you're investigatingcapβ the capability you're looking for π the thing you're tryna locate, iykyk
π RETURN π
the way this function gives you options... let's break it down:
- Offset to the start of capability β on success π slay, you found it, it's giving victory
-ENOENTβ if no such capability was found π like she looked and it's just not there, tragic- Negative errno β another error occurred π so something else went wrong, not the not-found kind, a whole different situation
no cap, check your return values bestie β -ENOENT is not the same as "some other negative errno," and mixing them up is highkey a mess π
π§ SEE ALSO π§
- Kernel file
./drivers/thunderbolt/cap.cπ tb_port_next_cap(9)tb_port_find_cap(9)tb_switch_next_cap(9)tb_switch_find_vse_cap(9)
all the sister functions, we stan a connected ecosystem π₯
and that's the whole page, bestie β go find those capabilities π
sign-off time π this one's from the ./drivers/thunderbolt source, dated October 2026, and yeah β the page name is tb_switch_find_cap(9) in case you forgot already lol π¦ β¨
π¦ 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