Name

drm_gem_cma_mmap — memory-map a CMA GEM object

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.