man3tbl/AttachShMem

Table of Contents

Name

AttachShMem - attach a shared memory partition

Description

AttachShMemIPC attaches a shared memory partition to a program.

This function is part of tblmngr.

Syntax

int AttachShMemIPC(
   char **MTpnt,

   int Memid,

   char *addr,

   int ROflag,

   int quiet_flag

   );

Arguments

**MTpnt

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

Memid

The shared memory id returned by the call to CreateShMem(3tbl) .

*addr

The address to attach at.

ROflag

If this value is non zero then attach the partition read only.

quiet_flag

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

Returns


0 - success
2 - attach failure

Notes

There is another function AttachShMemMMAP() 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: AttachShMem.3,v 1.2 2005/06/17 14:42:24 kitchen Exp $


Table of Contents