SYNOPSIS
- int drm_gem_create_mmap_offset(struct drm_gem_object * obj);
 
ARGUMENTS
obj
- 
- obj in question
  
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.
Drivers can call drm_gem_free_mmap_offset before freeing obj to release the fake offset again.
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
 
Lukas Wunner <[email protected]>
- vga_switcheroo documentation
 
COPYRIGHT

