shared_segments 62 ext/opcache/shared_alloc_shm.c zend_shared_segment_shm *shared_segments; shared_segments 95 ext/opcache/shared_alloc_shm.c shared_segments = (zend_shared_segment_shm *)((char *)(*shared_segments_p) + sizeof(void *) * (*shared_segments_count)); shared_segments 97 ext/opcache/shared_alloc_shm.c (*shared_segments_p)[i] = shared_segments + i; shared_segments 104 ext/opcache/shared_alloc_shm.c shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags); shared_segments 106 ext/opcache/shared_alloc_shm.c shared_segments[i].shm_id = first_segment_id; shared_segments 109 ext/opcache/shared_alloc_shm.c if (shared_segments[i].shm_id == -1) { shared_segments 113 ext/opcache/shared_alloc_shm.c shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0); shared_segments 114 ext/opcache/shared_alloc_shm.c if (shared_segments[i].common.p == (void *)-1) { shared_segments 116 ext/opcache/shared_alloc_shm.c shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); shared_segments 119 ext/opcache/shared_alloc_shm.c shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); shared_segments 121 ext/opcache/shared_alloc_shm.c shared_segments[i].common.pos = 0; shared_segments 122 ext/opcache/shared_alloc_shm.c shared_segments[i].common.size = allocate_size; shared_segments 127 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = NULL; shared_segments 179 ext/opcache/zend_shared_alloc.c res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in); shared_segments 196 ext/opcache/zend_shared_alloc.c res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in); shared_segments 229 ext/opcache/zend_shared_alloc.c copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)()); shared_segments 234 ext/opcache/zend_shared_alloc.c free(ZSMMG(shared_segments)); shared_segments 235 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = tmp_shared_segments; shared_segments 259 ext/opcache/zend_shared_alloc.c copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)()); shared_segments 260 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = tmp_shared_segments; shared_segments 263 ext/opcache/zend_shared_alloc.c S_H(detach_segment)(ZSMMG(shared_segments)[i]); shared_segments 265 ext/opcache/zend_shared_alloc.c efree(ZSMMG(shared_segments)); shared_segments 266 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = NULL; shared_segments 279 ext/opcache/zend_shared_alloc.c size_t block_size = ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos; shared_segments 313 ext/opcache/zend_shared_alloc.c if (ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos >= block_size) { /* found a valid block */ shared_segments 314 ext/opcache/zend_shared_alloc.c void *retval = (void *) (((char *) ZSMMG(shared_segments)[i]->p) + ZSMMG(shared_segments)[i]->pos); shared_segments 316 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments)[i]->pos += block_size; shared_segments 457 ext/opcache/zend_shared_alloc.c ZSMMG(shared_memory_state).positions[i] = ZSMMG(shared_segments)[i]->pos; shared_segments 467 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments)[i]->pos = ZSMMG(shared_memory_state).positions[i]; shared_segments 491 ext/opcache/zend_shared_alloc.c mprotect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->size, mode); shared_segments 78 ext/opcache/zend_shared_alloc.h typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int *shared_segment_count, char **error_in); shared_segments 99 ext/opcache/zend_shared_alloc.h zend_shared_segment **shared_segments;