My Project
mmal_vc_shm.h File Reference
#include "mmal_types.h"

Go to the source code of this file.

Functions

MMAL_STATUS_T mmal_vc_shm_init (void)
 
uint8_t * mmal_vc_shm_alloc (uint32_t size)
 
MMAL_STATUS_T mmal_vc_shm_free (uint8_t *mem)
 
uint8_t * mmal_vc_shm_lock (uint8_t *mem, uint32_t workaround)
 
uint8_t * mmal_vc_shm_unlock (uint8_t *mem, uint32_t *length, uint32_t workaround)
 

Detailed Description

Abstraction layer for MMAL VC shared memory. This API is only used by the MMAL VC component.

Definition in file mmal_vc_shm.h.

Function Documentation

◆ mmal_vc_shm_alloc()

uint8_t* mmal_vc_shm_alloc ( uint32_t  size)

Allocate a shared memory buffer

◆ mmal_vc_shm_free()

MMAL_STATUS_T mmal_vc_shm_free ( uint8_t *  mem)

Free a shared memory buffer

◆ mmal_vc_shm_init()

MMAL_STATUS_T mmal_vc_shm_init ( void  )

Initialise the shared memory system

◆ mmal_vc_shm_lock()

uint8_t* mmal_vc_shm_lock ( uint8_t *  mem,
uint32_t  workaround 
)

Lock a shared memory buffer

◆ mmal_vc_shm_unlock()

uint8_t* mmal_vc_shm_unlock ( uint8_t *  mem,
uint32_t *  length,
uint32_t  workaround 
)

Unlock a shared memory buffer