STRUCT DMA_ROUTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct dma_router πŸ¦‹

okay bestie, welcome to the Kernel API Manual β€” this one's a short lil baddie but she's important, trust. it's all about struct dma_router, and ngl she's giving "small but powerful" main character energy πŸ’…


✨ NAME ✨

struct dma_router β€” the DMA router structure πŸŽ€

like, that's literally her whole job description. iconic of her tbh.


🌸 SYNOPSIS 🌸

here's the whole vibe, bestie β€” look at her, so compact, so cute:

struct dma_router {
    struct device *dev;
    void (*route_free)(struct device *dev, void *route_data);
 };

that's it. two members. she said "I don't need a thousand fields, I need two good ones." periodt πŸ’€


πŸŽ€ Members πŸŽ€

okay so let's go through her members one by one, because there's only two and honestly we love an efficient queen πŸ‘‘

  • dev β€” a pointer to the DMA router device. this is literally the struct device * that says "hi, this is the device we're talking about." no device, no router, y'know? 🫢
  • route_free β€” a function that gets called when the route can be disconnected. look at her signature fr fr: void (*route_free)(struct device *dev, void *route_data); β€” she takes the struct device *dev and a void *route_data, and she's the one you call when it's time to tear that route down. clean up after yourself, bestie ✨

πŸ”₯ SEE ALSO πŸ”₯

bestie, buckle up, because this list is long β€” she's got a whole friend group and they all live in the kernel file ./include/linux/dmaengine.h πŸ’–

like, thirty-six entries. thirty-six!! she knows everyone at the party πŸŒˆπŸ‘‘


lowkey a reminder bestie: this page is a struct reference, so the members above are the whole technical story β€” no hidden behavior, no extra defaults, nothing sneaky. what you see is what you get 🧚

and that's the whole page, bestie! this one came from the kernel source dir ./include/linux, dated October 2026, and it's filed as struct dma_router(9) in the Kernel API Manual πŸ’œ go forth and route some DMA, you absolute icon πŸ¦‹βœ¨

πŸ“¦ where this page comes from