Table of Contents
OpenShMem - open a shared memory partition
OpenShMem opens
a shared shared memory partition for the AccelNET database.
This function
is part of tblmngr.
int OpenShMemIPC(
char **MTpnt,
int *Memid,
int key,
int size,
int perm,
char *addr,
int quiet_flag
);
Pointer to a pointer to the MASTER_SIZE record which contains
the table size information.
Pointer to an integer in which to return
the shared memory id.
the shared memory key.
size of the partition.
Write permissions.
Addr to attach the partition to.
If
this value is non zero then suppress error messages from the function.
0 - success
1 - create failure
2 - attach failure
There is another function OpenShMemMMAP() which is listed in the header
file but is not in use. This function may be used in the future for shared
memory management using mmap() calls rather then SysV IPC calls.
tblmngr(3tbl)
$Id: OpenShMem.3,v 1.2 2005/06/17 14:42:24 kitchen Exp
$
Table of Contents