tb_lc_set_sleep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ tb_lc_set_sleep(9) ✨

okay so this is tb_lc_set_sleep(9), straight outta the Kernel API Manual 🫢 and it's the function that tells the switch’s link controllers β€œbestie, we’re going to sleep” 😴 no cap.


πŸ’– NAME πŸ’–

tb_lc_set_sleep β€” Inform LC that the switch is going to sleep.

✨ SYNOPSIS ✨

int tb_lc_set_sleep (struct tb_switch *sw );

πŸŽ€ ARGUMENTS πŸŽ€

  • sw β€” the switch to set sleep 😴 like, the actual struct tb_switch * you’re handing over so it can get its sleepy-time notice.

🌸 DESCRIPTION 🌸

Let the switch link controllers know that the switch is going to sleep. That’s the whole assignment, bestie: a lil heads-up so the LC isn’t caught off guard when the switch goes night-night 😴✨.

πŸ¦‹ RETURN πŸ¦‹

  • 0 on success πŸŽ‰
  • negative errno otherwise 😭

so slay when it’s 0, and go check that errno when it’s not πŸ’….

πŸ’… SEE ALSO πŸ’…

the whole squad fr fr:


cute sign-off era: this page lives in ./drivers/thunderbolt, dated October 2026, and yes bestie, it is literally tb_lc_set_sleep(9) πŸ’–βœ¨

πŸ“¦ where this page comes from