Scroll to navigation

DMA_BUF_MAP_ATTACHME(9) Device drivers infrastructure DMA_BUF_MAP_ATTACHME(9)

NAME

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

SYNOPSIS

struct sg_table * dma_buf_map_attachment(struct dma_buf_attachment * attach, enum dma_data_direction direction);

ARGUMENTS

attach

[in] attachment whose scatterlist is to be returned

direction

[in] direction of DMA transfer

DESCRIPTION

Returns sg_table containing the scatterlist to be returned; returns ERR_PTR on error. May return -EINTR if it is interrupted by a signal.

A mapping must be unmapped by using dma_buf_unmap_attachment. Note that the underlying backing storage is pinned for as long as a mapping exists, therefore users/importers should not hold onto a mapping for undue amounts of time.

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10