drm_dev_dma_dev(9)
π drm_dev_dma_dev(9) β Kernel API Manual, but make it cute π
okay so bestie, welcome to drm_dev_dma_dev from the Kernel API Manual β¨ this is a little one but she's iconic, and honestly the way she just hands you a device pointer? slay. let's get into it π
β¨ NAME β¨
drm_dev_dma_dev β returns the DMA device for a DRM device π«Ά
like literally, that's the whole job. she gives you the DMA device. that's her main character moment.
πΈ SYNOPSIS πΈ
struct device * drm_dev_dma_dev (struct drm_device *dev );
that's the whole signature, no cap π
take a struct drm_device * named dev, get back a struct device *. clean. simple. ate.
π¦ ARGUMENTS π¦
devβ DRM device π this is the one you're feeding in, the DRM device whose DMA buddy you want back.
π DESCRIPTION π
Returns the DMA device of the given DRM device β¨
and here's the tea: by default, this is the DRM device's parent π that's the automatic vibe unless somebody's changed things up.
want to know more about that? see drm_dev_set_dma_dev π (iykyk)
β RETURN β
A DMA-capable device for the DRM device π not a NULL, not a maybe β a DMA-capable device. periodt.
π₯ SEE ALSO π₯
- Kernel file
./include/drm/drm_device.hπ like literally go read the header bestie struct drm_wedge_task_info(9)πenum switch_power_state(9)β‘struct drm_device(9)π
lowkey reminder: this is all documented under ./include/drm β that's where she lives π‘ don't go looking in the wrong directory fr fr
k that's the whole page, you're officially educated πβ¨ stay hydrated, read your headers, and remember: the default parent is doing so much unpaid labour for you π«Ά
β written with love from ./include/drm, October 2026 edition ππ
π¦ 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