Shared Memory


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_tix_shm_new (char *shm_name, void *adr, int len, ix_shm_type_e flag)
ix_shm_tix_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_tix_shm_get (char *name)

Enumeration Type Documentation

enum ix_shm_type_e

modus of shared memory mapping

Enumerator:
IX_SHM_CRMP  create and map shared memory
IX_SHM_MP  map shared memory


Function Documentation

int ix_shm_adr ( ix_shm_t psm,
void **  padr,
int *  plen 
)

retrieve pointer and length of shared mem by handle

Parameters:
psm handle of shared memory
padr where to store pointer
plen where to store length
Returns:
  • 0: OK
  • !0: error

void ix_shm_free ( ix_shm_t psm  ) 

detaches and removes shared memory if created by this process

Parameters:
psm handle of shared memory

ix_shm_t* ix_shm_get ( char *  name  ) 

handle for shared mem by name

Parameters:
name name of shared memory
Returns:
  • Handle
  • NULL: error

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

Parameters:
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
Returns:
  • handle of shared memory
  • NULL: error


Generated on 4 Mar 2014 for ixtools by  doxygen 1.4.7