dma_chan_get(9)
π dma_chan_get(9)
okay so bestie, welcome to the Kernel API Manual β yes, that's the manual name, we're in the kernel API girlies now π β and today's main character is dma_chan_get. Buckle up.
β¨ NAME β¨
dma_chan_get β try to grab a DMA channel's parent driver module π«Ά
Like, it tries. It's giving "shooting my shot" energy, not "guaranteed commitment" energy, iykyk.
πΈ SYNOPSIS πΈ
int dma_chan_get (struct dma_chan *chan );
That's the whole vibe: returns an int, takes one pointer, moves on. Iconic, lowkey.
π¦ ARGUMENTS π¦
chanβ channel to grab π
That's it. That's the argument. One channel, and you're grabbing it. Periodt.
β DESCRIPTION β
Must be called under dma_list_mutex. π₯
no cap, this is a hard requirement β take the dma_list_mutex lock first or you're gonna have a bad time π
And that's genuinely the whole description in the original. Short king of a manpage, fr fr. It's the kind of note that assumes you already know the lore (iykyk), so we're not gonna invent extra behaviour here β we're just gonna say the thing and move on. π
π SEE ALSO π
So first off, the kernel file this lives in: ./drivers/dma/dmaengine.c β that's the source of truth, bestie, go read it β¨
And then the whole extended friend group, in this exact order:
dev_to_dma_chan(9)struct dma_chan_tbl_ent(9)dma_chan_is_local(9)min_chan(9)dma_channel_rebalance(9)balance_ref_count(9)dma_chan_put(9)dma_find_channel(9)dma_issue_pending_all(9)dma_get_slave_channel(9)__dma_request_channel(9)dma_request_chan(9)dma_request_chan_by_mask(9)devm_dma_request_chan(9)dmaengine_get(9)dmaengine_put(9)dma_async_device_register(9)dma_async_device_unregister(9)dmaenginem_async_device_register(9)dma_wait_for_async_tx(9)dma_run_dependencies(9)
That's twenty-one references and yes I counted, we are not skipping a single one ππ
and that's the page!! π§ stay locked, stay safe under dma_list_mutex, and remember: dma_chan_get grabs, dma_chan_put gives back β balance, queen π
mwah π β this one came out of ./drivers/dma, dated October 2026, sealed with a dma_chan_get(9) and everything π
π¦ 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