Allocate shared memory
#include <audio_driver.h> void *ado_shm_alloc( size_t size, char *name, int32_t flags, off64_t *phys_addr );
The ado_shm_alloc() function allocates a block of shared memory. You use it mostly for the DMA buffer so that it can be shared.
The ado_shm_mmap() function is for cards where the DMA buffer is in onboard memory; it mmaps the card memory and makes the region shared without allocating it.
A pointer to the allocated memory, or NULL if an error occurred (errno is set).
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
ado_shm_free(), ado_shm_mmap()