tb_lc_set_wake(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tb_lc_set_wake β€” the Kernel API Manual, bestie edition πŸ’–

okay so this is tb_lc_set_wake(9), a page from the Kernel API Manual, and it's literally about flipping the wake bits on your Thunderbolt switch. short page, big main-character energy. let's go 🫢


✨ NAME ✨

tb_lc_set_wake β€” Enable/disable wake 🌸

✨ SYNOPSIS ✨

int tb_lc_set_wake (struct tb_switch *sw , unsigned int flags );

✨ ARGUMENTS ✨

  • sw β€” the switch whose wakes you're configuring πŸ‘‘ (yes, whose wakes, that's the actual wording and we're keeping it)
  • flags β€” the wakeup flags. pass 0 to disable, periodt πŸ’…

✨ DESCRIPTION ✨

ngl this one's short and sweet: for each LC, it sets the wake bits accordingly. that's it, that's the whole description. it's giving one-line icon πŸ’€

✨ RETURN ✨

  • 0 on success πŸŽ€
  • a negative errno otherwise 😭

✨ SEE ALSO ✨

first up, the kernel file this lives in: ./drivers/thunderbolt/lc.c β€” that's the address, don't lose it πŸ¦‹

and here's the whole friend group, all the siblings you should also go read:

that's eighteen (18) whole functions, no cap, all of them one man call away πŸ’œ


πŸ’« cute sign-off: this page came from ./drivers/thunderbolt and it's dated October 2026. stay hydrated, read your manpages, slay βœ¨πŸ§šβ€β™€οΈ
πŸ“¦ where this page comes from