Searched refs:shared_segment (Results 1 – 5 of 5) sorted by relevance
41 zend_shared_segment_posix *shared_segment; in create_segments() local51 (*shared_segments_p)[0] = shared_segment; in create_segments()55 if (shared_segment->shm_fd == -1) { in create_segments()60 if (ftruncate(shared_segment->shm_fd, requested_size) != 0) { in create_segments()66 …shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segm… in create_segments()67 if (shared_segment->common.p == MAP_FAILED) { in create_segments()74 shared_segment->common.pos = 0; in create_segments()75 shared_segment->common.size = requested_size; in create_segments()80 static int detach_segment(zend_shared_segment_posix *shared_segment) in detach_segment() argument82 munmap(shared_segment->common.p, shared_segment->common.size); in detach_segment()[all …]
41 zend_shared_segment *shared_segment; in create_segments() local109 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *)); in create_segments()110 (*shared_segments_p)[0] = shared_segment; in create_segments()112 shared_segment->p = p; in create_segments()113 shared_segment->pos = 0; in create_segments()114 shared_segment->size = requested_size; in create_segments()119 static int detach_segment(zend_shared_segment *shared_segment) in detach_segment() argument121 munmap(shared_segment->p, shared_segment->size); in detach_segment()
205 zend_shared_segment *shared_segment; in create_segments() local268 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *)); in create_segments()269 (*shared_segments_p)[0] = shared_segment; in create_segments()301 …shared_segment->p = mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS|FILE_MAP_EXECUTE, … in create_segments()327 shared_segment->pos = ACCEL_BASE_POINTER_SIZE; in create_segments()328 shared_segment->size = requested_size - ACCEL_BASE_POINTER_SIZE; in create_segments()335 static int detach_segment(zend_shared_segment *shared_segment) in detach_segment() argument
127 static int detach_segment(zend_shared_segment_shm *shared_segment) in detach_segment() argument129 shmdt(shared_segment->common.p); in detach_segment()
84 typedef int (*detach_segment_t)(zend_shared_segment *shared_segment);
Completed in 21 milliseconds