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 126 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = NULL; shared_segments 177 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 199 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 237 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 242 ext/opcache/zend_shared_alloc.c free(ZSMMG(shared_segments)); shared_segments 243 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = tmp_shared_segments; shared_segments 267 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 268 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = tmp_shared_segments; shared_segments 271 ext/opcache/zend_shared_alloc.c S_H(detach_segment)(ZSMMG(shared_segments)[i]); shared_segments 273 ext/opcache/zend_shared_alloc.c efree(ZSMMG(shared_segments)); shared_segments 274 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = NULL; shared_segments 287 ext/opcache/zend_shared_alloc.c size_t block_size = ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos; shared_segments 320 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 321 ext/opcache/zend_shared_alloc.c void *retval = (void *) (((char *) ZSMMG(shared_segments)[i]->p) + ZSMMG(shared_segments)[i]->pos); shared_segments 323 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments)[i]->pos += block_size; shared_segments 472 ext/opcache/zend_shared_alloc.c ZSMMG(shared_memory_state).positions[i] = ZSMMG(shared_segments)[i]->pos; shared_segments 482 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments)[i]->pos = ZSMMG(shared_memory_state).positions[i]; shared_segments 510 ext/opcache/zend_shared_alloc.c mprotect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->size, mode); shared_segments 524 ext/opcache/zend_shared_alloc.c if ((char*)ptr >= (char*)ZSMMG(shared_segments)[i]->p && shared_segments 525 ext/opcache/zend_shared_alloc.c (char*)ptr < (char*)ZSMMG(shared_segments)[i]->p + ZSMMG(shared_segments)[i]->size) { shared_segments 79 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 100 ext/opcache/zend_shared_alloc.h zend_shared_segment **shared_segments;