drm_prime_pages_to_sg(9)

drm_prime_pages_to_sg9

Converts a page array into an sg list

Usage

struct sg_table * drm_prime_pages_to_sg(struct page ** pages, int nr_pages);

Arguments

pages

pointer to the array of page pointers to convert

nr_pages

length of the page vector

Overview

This helper creates an sg table object from a set of pages the driver is responsible for mapping the pages into the importers address space for use with dma_buf itself.

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

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.