STRUCT DMA_FILTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct dma_filter(9) ✨

okay so this is a page from the Kernel API Manual, bestie β€” it's all about struct dma_filter, which is literally just the info you need to map a slave device/channel onto its filter_fn/param situation. πŸ’…


🌸 NAME 🌸

struct dma_filter β€” the whole info bundle for slave device/channel β†’ filter_fn/param mapping. it's giving "matchmaker but for DMA channels" fr fr πŸŽ€


✨ SYNOPSIS ✨

struct dma_filter {
    dma_filter_fn fn;
    int mapcnt;
    const struct dma_slave_map *map;
 };

like, that's the whole struct. no cap, three members, that's it. πŸ¦‹


πŸ’– Members πŸ’–

  • fn β€” the filter function callback. yes bestie, this is the actual function that does the filtering ✨
  • mapcnt β€” how many slave device/channels live in the map. it's the count, it counts. πŸ”’
  • map β€” the array of channel-to-filter mapping data. the vibes live here πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/dmaengine.h β€” plus a whole friend group of related pages, and yes we're listing every single one because they're all iconic:


🫢 that's the whole page, bestie. go read dmaengine.h if you want the deep lore. iykyk πŸ’œ

okayyy signing off 🧚 this one came from ./include/linux, dated October 2026 β€” mwah, slay, periodt. πŸŒˆπŸ’–

πŸ“¦ where this page comes from