drm_gem_shmem_object_mmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_gem_shmem_object_mmap(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” we're looking at the drm_gem_shmem_object_mmap(9) page and it's short but iconic. ✨


🌸 NAME 🌸

drm_gem_shmem_object_mmap β€” the GEM object function for drm_gem_shmem_mmap(). slay.

✨ SYNOPSIS ✨

int drm_gem_shmem_object_mmap (struct drm_gem_object *obj , struct
       vm_area_struct *vma );

πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” the GEM object, bestie.
  • vma β€” the VMA for the area to be mapped.

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function wraps drm_gem_shmem_mmap. that's the vibe fr fr. Drivers that employ the shmem helpers should use it as their drm_gem_object_funcs.mmap handler. periodt. πŸ’…

🌈 RETURN 🌈

  • 0 on success πŸŽ‰
  • a negative error code on failure 😭

πŸ’œ SEE ALSO πŸ’œ


mwah πŸ’‹ this page's source/version is ./include/drm / drm_gem_shmem_object_mmap(9), dated October 2026. byeee 🫢

πŸ“¦ where this page comes from