dma_allocbuf()

QNX SDP8.0SPI Framework TechnotesAPIConfiguration

Allocate a DMA buffer

Synopsis:

int (*dma_allocbuf)( void *const hdl,
                     dma_addr_t *addr,
                     const uint32_t len );

Arguments:

hdl
The handle of the low-level module that spi_init() returns.
addr
A pointer to the DMA address structure, dma_addr_t.
len
The length, in bytes, of the data for this DMA transaction.

Description:

The dma_allocbuf() function allocates a DMA buffer.

Errors:

The dma_allocbuf() function returns an errno. For values of errno, refer to the C Library Reference.

Page updated: