1KFIFO_DMA_OUT_PREPAR(9)           FIFO Buffer          KFIFO_DMA_OUT_PREPAR(9)
2
3
4

NAME

6       kfifo_dma_out_prepare - setup a scatterlist for DMA output
7

SYNOPSIS

9       kfifo_dma_out_prepare(fifo, sgl, nents, len);
10

ARGUMENTS

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

DESCRIPTION

25       This macro fills a scatterlist for DMA output which at most len bytes
26       to transfer. It returns the number entries in the scatterlist array. A
27       zero means there is no space available and the scatterlist is not
28       filled.
29
30       Note that with only one concurrent reader and one concurrent writer,
31       you don't need extra locking to use these macros.
32
34Kernel Hackers Manual 3.10         June 2019           KFIFO_DMA_OUT_PREPAR(9)
Impressum