drm_gem_vram_object_vmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • 0 on 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:


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