Typedefs | |
typedef ix_shm_s | ix_shm_t |
shared memory class | |
Enumerations | |
enum | ix_shm_type_e { IX_SHM_CRMP = 0x01, IX_SHM_MP = 0x02 } |
modus of shared memory mapping More... | |
Functions | |
ix_shm_t * | ix_shm_new (char *shm_name, void *adr, int len, ix_shm_type_e flag) |
ix_shm_t * | ix_shm_new_sv (char *shm_name, void *adr, int len, ix_shm_type_e flag) |
void | ix_shm_free (ix_shm_t *psm) |
void | ix_shm_free_sv (ix_shm_t *psm) |
int | ix_shm_adr (ix_shm_t *psm, void **padr, int *plen) |
ix_shm_t * | ix_shm_get (char *name) |
enum ix_shm_type_e |
int ix_shm_adr | ( | ix_shm_t * | psm, | |
void ** | padr, | |||
int * | plen | |||
) |
retrieve pointer and length of shared mem by handle
psm | handle of shared memory | |
padr | where to store pointer | |
plen | where to store length |
void ix_shm_free | ( | ix_shm_t * | psm | ) |
detaches and removes shared memory if created by this process
psm | handle of shared memory |
ix_shm_t* ix_shm_get | ( | char * | name | ) |
handle for shared mem by name
name | name of shared memory |
ix_shm_t* ix_shm_new | ( | char * | shm_name, | |
void * | adr, | |||
int | len, | |||
ix_shm_type_e | flag | |||
) |
create and/or attach shared memory to application memory region
shm_name | id of shared memory by name (character string which must not contain a slash) | |
len | length of memory to map | |
adr | memory to map to shared memory, must be page aligned | |
flag | map or create and map, s. ix_shm_type_e |