drm_gem_cma_create(9) allocate an object with the given size

SYNOPSIS

struct drm_gem_cma_object * drm_gem_cma_create(struct drm_device * drm, size_t size);

ARGUMENTS

drm

DRM device

size

size of the object to allocate

DESCRIPTION

This function creates a CMA GEM object and allocates a contiguous chunk of memory as backing store. The backing memory has the writecombine attribute set.

RETURNS

A struct drm_gem_cma_object * on success or an ERR_PTR-encoded 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