ALSA project - the C library reference
|
shared memory helpers More...
Functions | |
struct snd_shm_area * | snd_shm_area_create (int shmid, void *ptr) |
Create a shm area record. | |
struct snd_shm_area * | snd_shm_area_share (struct snd_shm_area *area) |
Increase the reference counter of shm area record. | |
int | snd_shm_area_destroy (struct snd_shm_area *area) |
Release the shared area record. | |
shared memory helpers
Shared memory helpers
struct snd_shm_area * snd_shm_area_create | ( | int | shmid, |
void * | ptr ) |
Create a shm area record.
shmid | IPC SHM ID |
ptr | the shared area pointer |
Allocates a shared area record with the given SHM ID and pointer. The record has a reference counter, which is initialized to 1 by this function.
int snd_shm_area_destroy | ( | struct snd_shm_area * | area | ) |
Release the shared area record.
area | the shared are record |
Decreases the reference counter of the given shared area record, and releases the resources automaticall if it reaches to 0.
struct snd_shm_area * snd_shm_area_share | ( | struct snd_shm_area * | area | ) |
Increase the reference counter of shm area record.
area | shm area record |
Increases the reference counter of the given shared area record.