drm_prime_sg_to_page_addr_arrays(9)

drm_prime_sg_to_page_addr_arrays9

Convert an sg table into a page array

Usage

int drm_prime_sg_to_page_addr_arrays(struct sg_table * sgt, struct page ** pages, dma_addr_t * addrs, int max_pages);

Arguments

sgt

scatter-gather table to convert

pages

array of page pointers to store the page array in

addrs

optional array to store the dma bus address of each page

max_pages

size of both the passed-in arrays

Overview

Exports an sg table into an array of pages and addresses. This is currently required by the TTM driver in order to do correct fault handling.

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.