1DMA_BUF_MAP_ATTACHME(9)  Device drivers infrastructure DMA_BUF_MAP_ATTACHME(9)
2
3
4

NAME

6       dma_buf_map_attachment - Returns the scatterlist table of the
7       attachment; mapped into _device_ address space. Is a wrapper for
8       map_dma_buf of the dma_buf_ops.
9

SYNOPSIS

11       struct sg_table *
12                                                dma_buf_map_attachment(struct dma_buf_attachment * attach,
13                                                enum dma_data_direction direction);
14

ARGUMENTS

16       attach
17           [in] attachment whose scatterlist is to be returned
18
19       direction
20           [in] direction of DMA transfer
21

DESCRIPTION

23       Returns sg_table containing the scatterlist to be returned; returns
24       ERR_PTR on error. May return -EINTR if it is interrupted by a signal.
25
26       A mapping must be unmapped by using dma_buf_unmap_attachment. Note that
27       the underlying backing storage is pinned for as long as a mapping
28       exists, therefore users/importers should not hold onto a mapping for
29       undue amounts of time.
30
32Kernel Hackers Manual 3.10         June 2019           DMA_BUF_MAP_ATTACHME(9)
Impressum