tb_lc_set_sleep(9)
β¨ 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 actualstruct 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 π¦
0on success π- negative
errnootherwise π
so slay when itβs 0, and go check that errno when itβs not π
.
π SEE ALSO π
the whole squad fr fr:
- Kernel file
./drivers/thunderbolt/lc.c tb_lc_read_uuid(9)tb_lc_reset_port(9)tb_lc_configure_port(9)tb_lc_unconfigure_port(9)tb_lc_configure_xdomain(9)tb_lc_unconfigure_xdomain(9)tb_lc_start_lane_initialization(9)tb_lc_is_clx_supported(9)tb_lc_is_usb_plugged(9)tb_lc_is_xhci_connected(9)tb_lc_xhci_connect(9)tb_lc_xhci_disconnect(9)tb_lc_set_wake(9)tb_lc_lane_bonding_possible(9)tb_lc_dp_sink_query(9)tb_lc_dp_sink_alloc(9)tb_lc_dp_sink_dealloc(9)tb_lc_force_power(9)
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
- 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