dev_to_dma_chan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


source/version: ./drivers/dma Β· date: October 2026 β€” mwah πŸ’‹ stay slaying, bestie 🫢

πŸ“¦ where this page comes from