1KFIFO_DMA_IN_PREPARE(9) FIFO Buffer KFIFO_DMA_IN_PREPARE(9)
2
3
4
6 kfifo_dma_in_prepare - setup a scatterlist for DMA input
7
9 kfifo_dma_in_prepare(fifo, sgl, nents, len);
10
12 fifo
13 address of the fifo to be used
14
15 sgl
16 pointer to the scatterlist array
17
18 nents
19 number of entries in the scatterlist array
20
21 len
22 number of elements to transfer
23
25 This macro fills a scatterlist for DMA input. It returns the number
26 entries in the scatterlist array.
27
28 Note that with only one concurrent reader and one concurrent writer,
29 you don't need extra locking to use these macros.
30
32Kernel Hackers Manual 3.10 June 2019 KFIFO_DMA_IN_PREPARE(9)