tb_tunnel_match_dma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 -1 to ignore. Yep, -1 is the "idc about this one" wildcard 🫢
  • transmit_ring β€” NHI ring number used to send packets towards the other domain. Pass -1 to ignore. Same deal, -1 means "not today" ✨
  • receive_path β€” HopID used for receiving packets. Pass -1 to ignore. You already know the -1 thing by now, iykyk πŸ’€
  • receive_ring β€” NHI ring number used to receive packets from the other domain. Pass -1 to 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 ⭐

  • true if there is a match 🌸
  • false otherwise πŸ’€

That's it. Binary queen. Periodt.


🧚 SEE ALSO 🧚

Kernel file ./drivers/thunderbolt/tunnel.c, plus the whole friend group:

Go say hi to all of them, they're all iconic πŸ’œ


And that's the page!! Big shoutout to ./drivers/thunderbolt for being the source, October 2026 for the date, and tb_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