tb_switch_find_vse_cap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ’œ


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