tb_tunnel_match_dma(9)
β¨ tb_tunnel_match_dma β the kernel API manual, bestie edition β¨
Okay so we're in tb_tunnel_match_dma(9) today, and honestly? She's a little function with a big job and I'm obsessed π
This one lives in the Kernel API Manual, so grab your iced coffee and let's get into it.
πΈ NAME πΈ
tb_tunnel_match_dma β Match DMA tunnel π
Like, she matches. That's the whole vibe. Moving on.
π¦ SYNOPSIS π¦
bool tb_tunnel_match_dma (const struct tb_tunnel *tunnel , int
transmit_path , int transmit_ring , int receive_path , int receive_ring
);
Look at her. Five arguments, returns a bool, no cap. Copy it exactly if you're typing it out, bestie, don't be "creative" with it π
π ARGUMENTS π
tunnelβ Tunnel to match. Yeah, the actual tunnel you're sussing out. Main character energy, obviously πtransmit_pathβ HopID used for transmitting packets. Pass-1to ignore. Yep,-1is the "idc about this one" wildcard π«Άtransmit_ringβ NHI ring number used to send packets towards the other domain. Pass-1to ignore. Same deal,-1means "not today" β¨receive_pathβ HopID used for receiving packets. Pass-1to ignore. You already know the-1thing by now, iykyk πreceive_ringβ NHI ring number used to receive packets from the other domain. Pass-1to ignore. Fourth time's the charm, literally π
π DESCRIPTION π
So here's the situation: this function can be used to match a specific DMA tunnel, if there are multiple DMA tunnels going through the same XDomain connection. Like when there's a whole group chat of tunnels and you need to find the exact one β that's her. She's the one who knows who's who π₯
No guessing, no vibes-only matching. She matches for real.
β RETURN β
trueif there is a match πΈfalseotherwise π
That's it. Binary queen. Periodt.
π§ SEE ALSO π§
Kernel file ./drivers/thunderbolt/tunnel.c, plus the whole friend group:
tb_available_credits(9)tb_tunnel_event(9)tb_tunnel_discover_pci(9)tb_tunnel_alloc_pci(9)tb_tunnel_reserved_pci(9)tb_dp_bandwidth_mode_maximum_bandwidth(9)tb_tunnel_discover_dp(9)tb_tunnel_alloc_dp(9)tb_tunnel_alloc_dma(9)tb_tunnel_discover_usb3(9)tb_tunnel_alloc_usb3(9)tb_tunnel_is_invalid(9)tb_tunnel_activate(9)tb_tunnel_deactivate(9)tb_tunnel_port_on_path(9)tb_tunnel_maximum_bandwidth(9)tb_tunnel_allocated_bandwidth(9)tb_tunnel_alloc_bandwidth(9)tb_tunnel_consumed_bandwidth(9)tb_tunnel_release_unused_bandwidth(9)tb_tunnel_reclaim_available_bandwidth(9)
Go say hi to all of them, they're all iconic π
And that's the page!! Big shoutout to./drivers/thunderboltfor being the source,October 2026for the date, andtb_tunnel_match_dma(9)for the version stamp at the bottom of the original β you're all doing amazing, sweetie π«Άπβ¨
π¦ 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