- int drm_gem_cma_mmap(struct file * filp, struct vm_area_struct * vma);
- file object
- VMA for the area to be mapped
This function implements an augmented version of the GEM DRM file mmap
OPERATION FOR CMA OBJECTS
In addition to the usual GEM VMA setup it immediately faults in the entire object instead of using on-demaind faulting. Drivers which employ the CMA helpers should use this function as their ->mmap handler in the DRM device file's file_operations structure.
0 on success or a negative error code on failure.
Jesse Barnes <[email protected]>
- Initial version
Laurent Pinchart <[email protected]>
Ideas on board SPRL,
- Driver internals
Daniel Vetter <[email protected]>
- Contributions all over the place
Lukas Wunner <[email protected]>
- vga_switcheroo documentation