Lines Matching refs:shared_segments
62 zend_shared_segment_shm *shared_segments; in create_segments() local
95 …shared_segments = (zend_shared_segment_shm *)((char *)(*shared_segments_p) + sizeof(void *) * (*sh… in create_segments()
97 (*shared_segments_p)[i] = shared_segments + i; in create_segments()
104 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags); in create_segments()
106 shared_segments[i].shm_id = first_segment_id; in create_segments()
109 if (shared_segments[i].shm_id == -1) { in create_segments()
113 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0); in create_segments()
114 if (shared_segments[i].common.p == (void *)-1) { in create_segments()
116 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments()
119 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments()
121 shared_segments[i].common.pos = 0; in create_segments()
122 shared_segments[i].common.size = allocate_size; in create_segments()