tb_consumed_dp_bandwidth(9)
π tb_consumed_dp_bandwidth(9) π
okay so this is a page from the Kernel API Manual and it's all about tb_consumed_dp_bandwidth β the function that tells you how much DisplayPort bandwidth a single link is already eating up. bestie, let's get into it π
β¨ NAME β¨
tb_consumed_dp_bandwidth β consumed DP bandwidth over a single link π
πΈ SYNOPSIS πΈ
int tb_consumed_dp_bandwidth (struct tb *tb , struct tb_port *src_port ,
struct tb_port *dst_port , struct tb_port *port , int *consumed_up , int
*consumed_down );
π¦ ARGUMENTS π¦
tbβ the domain structure, like, the whole vibe container for this Thunderbolt domain πsrc_portβ source protocol adapter, where the traffic starts its little journeydst_portβ destination protocol adapter, where it's headed π«Άportβ the USB4 port that the consumed bandwidth is calculated for, this is the main character of the calculation β¨consumed_upβ consumed upstream bandwidth, in Mb/s β¬οΈconsumed_downβ consumed downstream bandwidth, in Mb/s β¬οΈ
π DESCRIPTION π
So what it actually does: it calculates the consumed DP bandwidth at port between the path from src_port to dst_port. literally the math of "how much of this link is already spoken for" π₯
π¨ important caveat, do not skip: it does not take tunnel starting fromsrc_portand ending fromsrc_portinto account. yeah, src to src β that's what the original says, iykyk, no cap π
and if there's bandwidth reserved for any of the groups between src_port and dst_port (but not yet used π) then that reserved-but-unused bandwidth is also taken into account in the returned consumed bandwidth. so it's not just what's flowing right now, it's what's been claimed. ate π
β RETURN β
0 on success π β negative errno otherwise π
π SEE ALSO π
- Kernel file
./drivers/thunderbolt/tb.cstructtb_cm(9)π tb_consumed_usb3_pcie_bandwidth(9)tb_maximum_bandwidth(9)tb_available_bandwidth(9)tb_configure_asym(9)tb_configure_sym(9)
go read those next, bestie, they're all in the same friend group π§
π tiny reminder: this whole thing lives in ./drivers/thunderbolt, dated October 2026. slay, thanks for coming to my TED talk, ily, bye ππΈβ¨
π¦ 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