drm_gem_vram_vmap(9)
π drm_gem_vram_vmap(9) π
okay bestie, welcome to your Kernel API Manual moment β¨ this is the page for drm_gem_vram_vmap, and it's giving βpin it, map it, don't leave it pinned foreverβ energy π
iykyk.
πΈ NAME πΈ
drm_gem_vram_vmap β Pins and maps a GEM VRAM object into kernel address space π¦
β¨ SYNOPSIS β¨
int drm_gem_vram_vmap (struct drm_gem_vram_object *gbo , struct
iosys_map *map );
π ARGUMENTS π
gboβ the GEM VRAM object to map, bestie πmapβ returns the kernel virtual address of the VRAM GEM object's backing store π
π« DESCRIPTION π«
so the vmap function pins a GEM VRAM object to its current location β either system memory or video memory β and maps its buffer into kernel address space β¨ that's the whole main character move.
β οΈ but listen: a pinned object cannot be relocated, so you should avoid pinning objects permanently. no cap, that's important π
when you're done, call drm_gem_vram_vunmap with the returned address to unmap and unpin the GEM VRAM object π«Ά
π RETURN π
0 on success, or a negative error code otherwise π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/drm_gem_vram_helper.coverview(9) drm_gem_vram_create(9)drm_gem_vram_put(9)drm_gem_vram_offset(9)drm_gem_vram_vunmap(9)drm_gem_vram_fill_create_dumb(9)drm_gem_vram_object_free(9)drm_gem_vram_driver_dumb_create(9)drm_gem_vram_plane_helper_prepare_fb(9)drm_gem_vram_plane_helper_cleanup_fb(9)drm_gem_vram_object_vmap(9)drm_gem_vram_object_vunmap(9)drm_vram_mm_debugfs_init(9)drmm_vram_helper_init(9)drm_vram_helper_mode_valid(9)
okay that's the whole vibe check π
β source/version lives at ./drivers/gpu/drm, dated October 2026. bye bestie π«Άβ¨
π¦ 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