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

NAME

6       dma_buf_mmap - Setup up a userspace mmap with the given vma
7

SYNOPSIS

9       int dma_buf_mmap(struct dma_buf * dmabuf, struct vm_area_struct * vma,
10                        unsigned long pgoff);
11

ARGUMENTS

13       dmabuf
14           [in] buffer that should back the vma
15
16       vma
17           [in] vma for the mmap
18
19       pgoff
20           [in] offset in pages where this mmap should start within the
21           dma-buf buffer.
22

DESCRIPTION

24       This function adjusts the passed in vma so that it points at the file
25       of the dma_buf operation. It also adjusts the starting pgoff and does
26       bounds checking on the size of the vma. Then it calls the exporters
27       mmap function to set up the mapping.
28
29       Can return negative error values, returns 0 on success.
30
32Kernel Hackers Manual 2.6.         June 2019                   DMA_BUF_MMAP(9)
Impressum