tb_switch_find_by_uuid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_switch_find_by_uuid πŸ’…

okay bestie, welcome to the tb_switch_find_by_uuid(9) page β€” it lives in the Kernel API Manual, and it's honestly such a vibe. tiny little function, big main character energy. you want a switch? you got a UUID? say less, let's go πŸ¦‹


✨ NAME ✨

tb_switch_find_by_uuid β€” find a switch by its UUID, that's literally it, that's the whole job πŸŽ€


🌈 SYNOPSIS 🌈

struct tb_switch * tb_switch_find_by_uuid (struct tb *tb , const uuid_t
*uuid );

like, look at her. perfect signature. no notes. πŸ‘‘


πŸ“ ARGUMENTS πŸ“

  • tb β€” the domain that the switch belongs to. it's the neighborhood, the switch is the house, iykyk 🏠
  • uuid β€” the UUID you're out here looking for. the little name tag. the fingerprint. the whole identity tbh πŸ”

πŸ’– DESCRIPTION πŸ’–

so the returned switch has its reference count increased 😭 which means you, yes YOU, the caller, are responsible for it β€” you must call tb_switch_put when you're done with the switch. not just dropping it and walking away. that's a leak, and leaks are not slay. be a responsible bestie and put it back 🫢


⭐ RETURN ⭐

a pointer to struct tb_switch β€” iconic, we love to see it ✨

NULL if it's not found β€” no switch for you, sorry babe πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

everything else living over in the kernel file ./drivers/thunderbolt/switch.c β€” like, the whole friend group:

like, she's got connections. she knows everyone. πŸ’…


okay that's the whole page, mwah πŸ’‹ it came from ./drivers/thunderbolt, dated October 2026, and yes it's still tb_switch_find_by_uuid(9) β€” go put your switch back now, bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from