dev_to_dma_chan(9)
dev_to_dma_chan(9) π
okay so this page is from the Kernel API Manual, and it's literally about dev_to_dma_chan β the little helper that converts a device pointer to its sysfs container object. bestie, it's giving "small function, big lock energy." π¦
β¨ NAME β¨
dev_to_dma_chan β convert a device pointer to its sysfs container object
πΈ SYNOPSIS πΈ
struct dma_chan * dev_to_dma_chan (struct device *dev );
π ARGUMENTS π
devβ device node
π DESCRIPTION π
okay so here's the whole entire rule, no cap: Must be called under dma_list_mutex. like, that is the vibe check. πβ¨
π¨ bestie, do not skip the lock β must is doing a lot of heavy lifting in that sentence. dma_list_mutex is not optional. periodt.
π¦ SEE ALSO π¦
Kernel file: ./drivers/dma/dmaengine.c β and then the whole linked-up squad is:
struct dma_chan_tbl_ent(9)dma_chan_is_local(9)min_chan(9)dma_channel_rebalance(9)balance_ref_count(9)dma_chan_get(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)
source/version: ./drivers/dma Β· date: October 2026 β mwah π stay slaying, bestie π«Ά
π¦ 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