shmget64()--Get ID of Shared Memory Segment with Key (64-Bit Enabled)


  Syntax
 #include <sys/shm.h>
 #include <sys/stat.h>

 int shmget64(key_t key, size64_t size, int shmflg);  

  Service Program Name: QP0ZUSHR

  Default Public Authority: *USE

  Threadsafe: Yes

The shmget64() function either creates a new shared memory segment or returns the shared memory identifier associated with the key parameter for an existing shared memory segment. A new shared memory segment is created if one of the following conditions is met:

The shmget64() function operates on teraspace shared memory segments only. As a result, this function behaves as if the SHM_TS_NP flag is set in the shmflag parameter. If nonteraspace shared memory segment support is required, the shmget() function must be used.

The shmget64() function is enabled for large (64-bit) shared memory segments. It can create teraspace shared memory segments larger than 4 294 967 295 bytes (4GB minus 1 byte). The maximum size of a teraspace shared memory segment is 17 450 452 123 648 bytes (16TB minus 132GB).

For additional information about parameters, authorities, return values, error conditions, error messages, usage notes, related information, and examples, see shmget()--Get ID of Shared Memory Segment with Key.



API introduced: V6R1

[ Back to top | UNIX-Type APIs | APIs by category ]