drm_gem_vram_object_vmap(9)
π drm_gem_vram_object_vmap(9) β like, the whole glow-up
okay so bestie, welcome to the Kernel API Manual β¨ this little icon right here is drm_gem_vram_object_vmap(9) and honestly? she's a legend. she's the one that handles the vmap hook. iykyk π
β¨ NAME β¨
drm_gem_vram_object_vmap β the function that implements &struct drm_gem_object_funcs.vmap π«Ά like, that's literally her job, that's the whole vibe.
πΈ SYNOPSIS πΈ
int drm_gem_vram_object_vmap (struct drm_gem_object *gem , struct iosys_map *map );
no cap, that's the whole signature. three things: return type int, her name, and two lil arguments. periodt π
π¦ ARGUMENTS π¦
gemβ the GEM object you wanna map. that's the main character of this whole operation πmapβ this one's an out param, bestie. it returns the kernel virtual address of the VRAM GEM object's backing store. so like, she's giving you the address, not taking one. don't get it twisted π
β RETURN β
0on success π slay- or a negative error code otherwise π like if the vibe check fails, you get a negative number. that's it, that's the deal.
π₯ SEE ALSO π₯
okay so this is the friend group, and yes they all show up to the group chat π no one gets left out:
- the kernel file
./drivers/gpu/drm/drm_gem_vram_helper.coverview(9) β that's the hometown, the origin story π drm_gem_vram_create(9)drm_gem_vram_put(9)drm_gem_vram_offset(9)drm_gem_vram_vmap(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_vunmap(9)β yes, her direct counterpart, the unmap to her map π§drm_vram_mm_debugfs_init(9)drmm_vram_helper_init(9)drm_vram_helper_mode_valid(9)
bestie reminder: map is where the kernel virtual address comes back out β it's a return-by-pointer situation, not something you pass in all nicely filled out π
and that's the page!! mwah π this gem dropped from ./drivers/gpu/drm back in October 2026, so like, she's fresh but she's iconic π go read the source, ily, bye π¦π
π¦ 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