Lines Matching refs:shared_segment
38 zend_shared_segment *shared_segment; in create_segments() local
46 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *)); in create_segments()
47 (*shared_segments_p)[0] = shared_segment; in create_segments()
56 …shared_segment->p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|MAP_H… in create_segments()
57 if (shared_segment->p != MAP_FAILED) { in create_segments()
58 shared_segment->pos = 0; in create_segments()
59 shared_segment->size = requested_size; in create_segments()
65 …shared_segment->p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, … in create_segments()
66 if (shared_segment->p == MAP_FAILED) { in create_segments()
71 shared_segment->pos = 0; in create_segments()
72 shared_segment->size = requested_size; in create_segments()
77 static int detach_segment(zend_shared_segment *shared_segment) in detach_segment() argument
79 munmap(shared_segment->p, shared_segment->size); in detach_segment()