drm_gem_dma_mmap(9)
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:
dma helpers(9)__drm_gem_dma_create(9)drm_gem_dma_create(9)drm_gem_dma_create_with_handle(9)drm_gem_dma_free(9)drm_gem_dma_dumb_create_internal(9)drm_gem_dma_dumb_create(9)drm_gem_dma_get_unmapped_area(9)drm_gem_dma_print_info(9)drm_gem_dma_get_sg_table(9)drm_gem_dma_prime_import_sg_table(9)drm_gem_dma_vmap(9)drm_gem_dma_prime_import_sg_table_vmap(9)
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
- 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