carta
drm_gem_mmap(9)

drm_gem_mmap9

Memory map routine for gem objects

Arguments

filp

DRM file pointer

vma

VMA for the area to be mapped

Overview

If a driver supports GEM object mapping, mmap calls on the DRM file descriptor will end up here.

Look up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created when the GTT map ioctl was called on the object) and map it with a call to drm_gem_mmap_obj.

If the caller is not granted access to the buffer object, the mmap will fail with EACCES. Please see the vma manager for more information.

Authors

Jesse Barnes <[email protected]>
Intel Corporation,

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.