man3tbl/OpenShMem

Table of Contents

Name

OpenShMem - open a shared memory partition

Description

OpenShMem opens a shared shared memory partition for the AccelNET database.

This function is part of tblmngr.

Syntax

int OpenShMemIPC(
   char **MTpnt,

   int *Memid,

   int key,

   int size,

   int perm,

   char *addr,

   int quiet_flag

   );

Arguments

**MTpnt

Pointer to a pointer to the MASTER_SIZE record which contains the table size information.

*Memid

Pointer to an integer in which to return the shared memory id.

key

the shared memory key.

size

size of the partition.

perm

Write permissions.

*addr

Addr to attach the partition to.

quiet_flag

If this value is non zero then suppress error messages from the function.

Returns


0 - success
1 - create failure
2 - attach failure

Notes

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.

See Also

tblmngr(3tbl)

Manual page revision

$Id: OpenShMem.3,v 1.2 2005/06/17 14:42:24 kitchen Exp $


Table of Contents