snd_dmaengi...uest_channel(9)
π snd_dmaengine_pcm_request_channel β like, the Kernel API Manual (section 9) page you didn't know you needed π
okay so bestie, welcome to the <pink>Kernel API Manual</pink>, section 9 β yes it's a real section, no I will not be taking questions. this one's about grabbing yourself a DMA channel for dmaengine PCM, and honestly? it's giving tiny-but-powerful. let's go β¨
πΈ NAME πΈ
snd_dmaengine_pcm_request_channel β literally just: request a channel for the dmaengine PCM. that's the whole vibe. that's the whole function. π
β¨ SYNOPSIS β¨
struct dma_chan * snd_dmaengine_pcm_request_channel (dma_filter_fn
filter_fn , void *filter_data );
no cap, that's the whole signature. two args, one channel struct pointer coming back at you. she's simple, she's elegant, she slays π«Ά
π¦ ARGUMENTS π¦
filter_fnβ the filter function, bestie. it's what you use to request the DMA channel. think of it as your little matchmaker that decides which channel is the one πfilter_dataβ the data you pass along to that DMA filter function. it rides shotgun withfilter_fn, iykyk π
π DESCRIPTION π
okay so here's the tea: this function requests a DMA channel for usage with dmaengine PCM. that's it. that's the description. she's a one-liner and she knows it. main character energy fr fr π
β RETURN β
it hands you back NULL, or the requested DMA channel. so like... vibe check your pointer before you use it, bestie ππ
a NULL return is a real possibility, don't be out here dereferencing like it's guaranteed. that's not a warning the manpage gives, that's just me caring about you π«Ά
π SEE ALSO π
the kernel file lives at ./sound/core/pcm_dmaengine.c β that's the source, go read it, it's iconic π
and the whole friend group shows up here:
snd_hwparams_to_dma_slave_config(9)snd_dmaengine_pcm_set_config_from_dai_data(9)snd_dmaengine_pcm_trigger(9)snd_dmaengine_pcm_pointer_no_residue(9)snd_dmaengine_pcm_pointer(9)snd_dmaengine_pcm_open(9)snd_dmaengine_pcm_close(9)snd_dmaengine_pcm_close_release_chan(9)snd_dmaengine_pcm_refine_runtime_hwparams(9)
like a whole squad, all (9) pages, all hanging out in ./sound/core. obsessed π§ββοΈ
mwah π that's the page! shoutout to ./sound/core for being the source location and to October 2026 for the date stamp β my little sign-off before you close the terminal. go request some channels, bestie, u got this πΈπβ¨
π¦ 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