drm_dev_dma_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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