Lines Matching refs:shared_segments
61 zend_shared_segment_shm *shared_segments; in create_segments() local
94 …shared_segments = (zend_shared_segment_shm *)((char *)(*shared_segments_p) + sizeof(void *) * (*sh… in create_segments()
96 (*shared_segments_p)[i] = shared_segments + i; in create_segments()
103 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags); in create_segments()
105 shared_segments[i].shm_id = first_segment_id; in create_segments()
108 if (shared_segments[i].shm_id == -1) { in create_segments()
112 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0); in create_segments()
113 if (shared_segments[i].common.p == (void *)-1) { in create_segments()
115 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments()
118 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments()
120 shared_segments[i].common.pos = 0; in create_segments()
121 shared_segments[i].common.size = allocate_size; in create_segments()