Table of Contents
CreateShMem - create a shared memory partition
CreateShMemIPC
creates and initializes a shared memory partition for the AccelNET database.
This function is part of tblmngr.
int CreateShMemIPC(
char **MTpnt,
int *Memid,
int key,
int size,
int perm,
char *addr,
int *create,
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 returned by the call to
CreateShMem(3tbl)
.
the
shared memory key.
size of the partition.
Write permissions.
Addr
to attach the partition to.
create status
0 = existing partition
1 = created new partition
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
CreateShMemMMAP() 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: CreateShMem.3,v 1.3 2005/06/17
14:42:24 kitchen Exp $
Table of Contents