drm_gem_dma_mmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

drm_gem_dma_mmap(9)

okay so bestie, welcome to the Kernel API Manual β€” this page is all about drm_gem_dma_mmap, the function that memory-maps an exported DMA GEM object and is honestly giving main-character immediacy πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

drm_gem_dma_mmap β€” memory-map an exported DMA GEM object.

🌸 SYNOPSIS 🌸

int drm_gem_dma_mmap (struct drm_gem_dma_object *dma_obj , struct vm_area_struct *vma );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dma_obj β€” DMA GEM object.
  • vma β€” VMA for the area to be mapped.

✨ DESCRIPTION ✨

This function maps a buffer into a userspace process's address space. In addition to the usual GEM VMA setup, it immediately faults in the entire object instead of using on-demand faulting β€” like, the whole thing, right now, no waiting for a fault to show up later πŸ”₯

πŸ’– RETURN πŸ’–

Returns 0 on success or a negative error code on failure. That's the whole vibe check 😌

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/drm_gem_dma_helper.c β€” and the whole reference squad is:


okay bestie, that's a wrap β€” source ./drivers/gpu/drm, dated October 2026, for drm_gem_dma_mmap(9). mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from