Developer World
Spresense SDK Library v3.2.0-ebc0364
mpshm.h File Reference
#include <sys/types.h>
#include <asmp/types.h>
#include <semaphore.h>

Go to the source code of this file.

Classes

struct  mpshm
 

Macros

#define MPC_POWERON   1
 
#define MPC_POWEROFF   2
 
#define MPC_RETENTION   3
 
#define EXTERN   extern "C"
 
#define mpshm_unmap(shm)   mpshm_detach(shm);
 

Typedefs

typedef struct mpshm mpshm_t
 

Functions

int mpshm_init (mpshm_t *shm, key_t key, size_t size)
 
int mpshm_destroy (mpshm_t *shm)
 
void * mpshm_attach (mpshm_t *shm, int shmflg)
 
int mpshm_detach (mpshm_t *shm)
 
int mpshm_control (mpshm_t *shm, int cmd, void *buf)
 
uintptr_t mpshm_virt2phys (mpshm_t *shm, void *vaddr)
 
void * mpshm_phys2virt (mpshm_t *shm, uintptr_t paddr)
 
int mpshm_remap (mpshm_t *shm, void *vaddr)