drm_gem_dma_vmap(9)
๐ NAME ๐
okay so bestie, this is the Kernel API Manual page for drm_gem_dma_vmap(9), and itโs literally here to map a DMA GEM object into the kernelโs virtual address space. iconic. ๐
โจ SYNOPSIS โจ
int drm_gem_dma_vmap (struct drm_gem_dma_object *dma_obj , struct
iosys_map *map );
๐ธ ARGUMENTS ๐ธ
dma_objโ the DMA GEM object. like, the actual object youโre dealing with. ๐mapโ Returns the kernel virtual address of the DMA GEM objectโs backing store. yes, thatโs the whole point. โจ
๐ฆ DESCRIPTION ๐ฆ
okay so this function maps a buffer into the kernelโs virtual address space. and since the DMA buffers are already mapped into the kernel virtual address space, it simply returns the cached virtual address. no cap, thatโs the vibe. ๐ซถ
โญ RETURN โญ
0 on success, or a negative error code otherwise. slay when itโs 0, sad trombone when itโs negative. ๐ญ
๐ฅ SEE ALSO ๐ฅ
okay bestie, hereโs the whole squad:
- Kernel file
./drivers/gpu/drm/drm_gem_dma_helper.cโ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_mmap(9)drm_gem_dma_prime_import_sg_table_vmap(9)
thatโs the page, bestie! ๐ this one is sourced from ./drivers/gpu/drm and stamped October 2026 โ manual name: drm_gem_dma_vmap(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