tb_switch_find_vse_cap(9)
β¨ tb_switch_find_vse_cap(9) β¨
okay bestie, welcome to the Kernel API Manual π this is the page for tb_switch_find_vse_cap and it's lowkey a little detective story, no cap π΅οΈββοΈ
πΈ NAME πΈ
tb_switch_find_vse_cap β find switch vendor specific capability π
π¦ SYNOPSIS π¦
int tb_switch_find_vse_cap (struct tb_switch *sw , enum
tb_switch_vse_cap vsec );
like, there it is, exactly as written, don't come for me π
π ARGUMENTS π
swβ the switch you're hunting the capability for, the main character of this whole operation πvsecβ the vendor specific capability you're looking for, i.e. the thing you actually want π
π§ DESCRIPTION π§
so what does this function do, you ask? it enumerates the vendor specific capabilities (VSEC) of a switch, and when it finds the one matching vsec, it returns the offset. that's it, that's the whole vibe β¨ literally just scrolling the list until it goes "yep, that one" π«Ά
π RETURN π
- Offset of capability β on success π slay.
-ENOENTβ if the capability was not found π it's giving "not in my house".- Negative errno β another error occurred π something else went sideways.
π 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_cap(9)
okay that's the whole page, go read the friends too, iykyk π¦ and this gem lives over in ./drivers/thunderbolt, dated October 2026 β mwah, bye bestie, ily, stay cap-hunting ππβ
π¦ 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