drm_gem_free_mmap_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_free_mmap_offset(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this little page is all about drm_gem_free_mmap_offset, and honestly it's a short one, so grab your iced coffee and let's go πŸŽ€


🌸 NAME 🌸

drm_gem_free_mmap_offset β€” release a fake mmap offset for an object 🫢


✨ SYNOPSIS ✨

void drm_gem_free_mmap_offset (struct drm_gem_object *obj );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • obj β€” the obj in question πŸ‘€ (yes, that's the whole description, she's mysterious like that)

πŸ’– DESCRIPTION πŸ’–

This routine frees fake offsets that were allocated by drm_gem_create_mmap_offset. So like, if you made a pretend offset, this is the girl who cleans it up πŸ’…

⚠️ big note bestie: drm_gem_object_release already calls this function, so drivers don't have to take care of releasing the mmap offset themselves when freeing the GEM object. it's giving "already handled, don't stress" 😌 no double-freeing, we don't do that here πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/drm_gem.c β€” and the whole friend group πŸ‘‘


πŸ’« and that's the whole page, periodt πŸ’«

this cutie lives in ./drivers/gpu/drm, dropped in October 2026, and she's filed under drm_gem_free_mmap_offset(9) β€” go off, icon πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from