other versions
- jessie 3.16.56-1+deb8u1
DRM_GEM_CREATE_MMAP_(9) | DRM Core | DRM_GEM_CREATE_MMAP_(9) |
NAME¶
drm_gem_create_mmap_offset_size - create a fake mmap offset for an objectSYNOPSIS¶
int
drm_gem_create_mmap_offset_size(struct drm_gem_object * obj,
size_t size);
ARGUMENTS¶
objobj in question
size
the virtual size
DESCRIPTION¶
GEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures. This routine allocates and attaches a fake offset for obj, in cases where the virtual size differs from the physical size (ie. obj->size). Otherwise just use drm_gem_create_mmap_offset.AUTHORS¶
Jesse Barnes <jesse.barnes@intel.com>Initial version
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Driver internals
Daniel Vetter <daniel.vetter@ffwll.ch>
Contributions all over the place
COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |