Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

16.1.1.14. alt_dma_rxchan_open()

Prototype

alt_dma_rxchan alt_dma_rxchan_open (const char* name)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<sys/alt_dma.h>

Description

The alt_dma_rxchan_open() function obtains an alt_dma_rxchan descriptor for a DMA receive channel. The input argument, name, is the name of the associated physical device, for example, /dev/dma_0.

Return

The return value is the requested alt_dma_rxchan descriptor on success and null otherwise. If an error occurs, errno is set to ENODEV.