vmw_ttm_map_for_dma(9)
β¨ vmw_ttm_map_for_dma(9) β¨
okay bestie, this page is straight from the Kernel API Manual and it's all about vmw_ttm_map_for_dma(9). π«Ά
π NAME π
vmw_ttm_map_for_dma β map TTM pages to get device addresses. π
πΈ SYNOPSIS πΈ
int vmw_ttm_map_for_dma (struct vmw_ttm_tt *vmw_tt );
π¦ ARGUMENTS π¦
vmw_ttβ Pointer to astruct vmw_ttm_backend. π
π DESCRIPTION π
okay so picture this: this function is the one you use to get device addresses from the kernel DMA layer. β¨
But here's the tea, and it is important: it's violating the DMA API. π Once this operation has been performed, it's illegal for the CPU to write to the pages without first unmapping the DMA mappings, or calling dma_sync_sg_for_cpu. Not a vibe check you want to fail, fr fr. π
bestie, that means it is only legal to call this function if we know thatdma_sync_sg_for_cpuis a NOP, anddma_sync_sg_for_deviceis at most a CPU write buffer flush. Periodt. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c __vmw_piter_non_sg_next(9)vmw_piter_start(9)vmw_ttm_unmap_from_dma(9)vmw_ttm_map_dma(9)vmw_ttm_unmap_dma(9)vmw_bo_sg_table(9)vmw_move_notify(9)vmw_swap_notify(9)
And that's the whole page, bestie. Cute little sign-off: this one comes from the source/version stamp ./drivers/gpu/drm/vmwgfx, dated October 2026, under the manual title vmw_ttm_map_for_dma(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