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

NAME

6       dma_buf_attach - Add the device to dma_buf's attachments list;
7       optionally, calls attach of dma_buf_ops to allow device-specific attach
8       functionality
9

SYNOPSIS

11       struct dma_buf_attachment * dma_buf_attach(struct dma_buf * dmabuf,
12                                                  struct device * dev);
13

ARGUMENTS

15       dmabuf
16           [in] buffer to attach device to.
17
18       dev
19           [in] device to be attached.
20

DESCRIPTION

22       Returns struct dma_buf_attachment pointer for this attachment.
23       Attachments must be cleaned up by calling dma_buf_detach.
24

RETURNS

26       A pointer to newly created dma_buf_attachment on success, or a negative
27       error code wrapped into a pointer on failure.
28
29       Note that this can fail if the backing storage of dmabuf is in a place
30       not accessible to dev, and cannot be moved to a more suitable place.
31       This is indicated with the error code -EBUSY.
32
34Kernel Hackers Manual 3.10         June 2019                 DMA_BUF_ATTACH(9)
Impressum