SYNOPSIS
- int drm_gem_cma_mmap(struct file * filp, struct vm_area_struct * vma);
ARGUMENTS
filp
-
- file object
vma
- VMA for the area to be mapped
DESCRIPTION
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.
RETURNS
0 on success or a negative error code on failure.
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