key The key for which the associated shared memory identifier is returned. size Shared memory segment size in bytes. shmflg Flag used to initialize the low order 9 bits of the shm_perm.mode member of the shmid_ds data structure associated with the new shared memory segment. For more information, see the Description.