usb4_dp_por...mode_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ usb4_dp_port_bandwidth_mode_enabled ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ this one's a lil function from the Thunderbolt/USB4 corner of the kernel and it's honestly shorter than my attention span, so we'll be quick.


πŸ’– NAME πŸ’–

usb4_dp_port_bandwidth_mode_enabled β€” literally just asking "is the bandwidth allocation mode enabled?" no cap πŸ¦‹


🌸 SYNOPSIS 🌸

bool usb4_dp_port_bandwidth_mode_enabled(struct tb_port *port);

🧚 ARGUMENTS 🧚

  • port β€” the DP IN adapter you wanna check πŸ‘€ that's it, that's the whole argument

⭐ DESCRIPTION ⭐

You can call this on any DP IN adapter. Any of them. It does not care. main character energy fr πŸ’…


πŸ”₯ RETURN πŸ”₯

  • true β€” the bandwidth allocation mode has been enabled, slay πŸ‘‘
  • false β€” it hasn't, and that's also fine 🫢

🌈 SEE ALSO 🌈

The kernel file lives at ./drivers/thunderbolt/usb4.c β€” and here's the whole friend group, iykyk:


and that's the whole page bestie πŸ’œ this lil legend comes to you from ./drivers/thunderbolt, dated October 2026 β€” mwah, go read the whole list above, it's giving "kernel dev reading club" πŸ“βœ¨

πŸ“¦ where this page comes from