usb4_switch_set_wake(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… usb4_switch_set_wake (section 9 of the Kernel API Manual)

okay so bestie, gather round 🫢 this is a kernel API man page, section 9, and it's about the one little function that decides whether your USB4 router is allowed to wake the whole system up. yes, that's it. that's the whole gig. and honestly? iconic behaviour.


🌸 NAME 🌸

usb4_switch_set_wake β€” enabled/disable wake ✨

(yes, it really says "Enabled/disable" in the source. we don't fix it. we respect it. periodt.)


πŸ¦‹ SYNOPSIS πŸ¦‹

int usb4_switch_set_wake (struct tb_switch *sw , unsigned int flags ,
       bool runtime );

πŸŽ€ ARGUMENTS πŸŽ€

  • sw β€” the USB4 router in question πŸ‘‘ the actual main character we're flipping wake on.
  • flags β€” the wakeup flags πŸ’« and listen: 0 disables it. zero means off, no cap.
  • runtime β€” a bool telling us the wake is being programmed during system runtime 🌈 like, are we doing this live, right now, mid-flight.

πŸ’œ DESCRIPTION πŸ’œ

Enables/disables the router to wake up from sleep 😴➑️😳 that's literally it, that's the whole function. one job. does it well. we love a focused queen.


⭐ RETURN ⭐

0 on success πŸŽ‰, negative errno otherwise 😭 (so like, if it comes back negative, something went sideways, check your errno fr fr).


πŸ”₯ SEE ALSO πŸ”₯

this is the part where the page just goes absolutely feral and lists the entire friend group πŸ’€ the kernel file lives at ./drivers/thunderbolt/usb4.c, and here's everyone it wants you to meet:

like I said. the whole friend group. every single one of them made the list, no cuts, no skips πŸ’…

okay that's the page!! this lil drop was brought to you by the source dir ./drivers/thunderbolt, dated October 2026, and the page itself is usb4_switch_set_wake(9) 🧚 go forth and wake responsibly, bestie πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from