bam_free_chan(9)
π bam_free_chan(9) β the "we're SO done here" cleanup era
okay bestie, welcome to the Kernel API Manual β¨ you're reading the page for bam_free_chan, and honestly? she's the friend who shows up after the party with a garbage bag. lowkey iconic. π
πΈ NAME πΈ
bam_free_chan β frees dma resources associated with specific channel π§Ήπ
β¨ SYNOPSIS β¨
void bam_free_chan (struct dma_chan *chan );
it returns void, so likeβ¦ nothing comes back. no receipt, no goodbye text, just vibes and freed memory. π
π¦ ARGUMENTS π¦
chanβ the specified channel π« this is the one you're breaking up with. the channel in question. the main character of the deallocation arc.
π DESCRIPTION π
free the allocated fifo descriptor memory and channel resources π₯ that's it, that's the whole job. she takes the fifo descriptor memory that got allocated, plus the channel resources, and she lets them go. closure, but make it kernel-space. periodt. π
ngl, this is the counterpart energy to actually grabbing resources in the first place β so if you're the one who allocated, you're the one who frees. no cap. π«Ά
π SEE ALSO π
- Kernel file
./drivers/dma/qcom/bam_dma.cβ the source file where all this lives, go read her π bam_addr(9)bam_reset(9)bam_reset_channel(9)bam_chan_init_hw(9)bam_alloc_chan(9)bam_slave_config(9)bam_prep_slave_sg(9)bam_dma_terminate_all(9)bam_pause(9)bam_resume(9)process_channel_irqs(9)bam_dma_irq(9)bam_tx_status(9)bam_apply_new_config(9)bam_start_dma(9)dma_tasklet(9)bam_issue_pending(9)bam_dma_free_desc(9)bam_init(9)
that's the whole friend group, fr fr β go say hi to all of them π
and that's the page, bestie!! π this one comes from ./drivers/dma/qcom, dated October 2026 β mwah, take care, hydrate, and free your channels πβ¨π§
π¦ 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