Searched refs:shared_segment (Results 1 - 5 of 5) sorted by relevance

/PHP_TRUNK/ext/opcache/
H A Dshared_alloc_mmap.c38 zend_shared_segment *shared_segment; local
46 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *));
47 (*shared_segments_p)[0] = shared_segment;
49 shared_segment->p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0);
50 if (shared_segment->p == MAP_FAILED) {
55 shared_segment->pos = 0;
56 shared_segment->size = requested_size;
61 static int detach_segment(zend_shared_segment *shared_segment) argument
63 munmap(shared_segment->p, shared_segment
[all...]
H A Dshared_alloc_posix.c41 zend_shared_segment_posix *shared_segment; local
50 shared_segment = (zend_shared_segment_posix *)((char *)(*shared_segments_p) + sizeof(void *));
51 (*shared_segments_p)[0] = shared_segment;
54 shared_segment->shm_fd = shm_open(shared_segment_name, O_RDWR|O_CREAT|O_TRUNC, 0600);
55 if (shared_segment->shm_fd == -1) {
60 if (ftruncate(shared_segment->shm_fd, requested_size) != 0) {
66 shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segment->shm_fd, 0);
67 if (shared_segment->common.p == MAP_FAILED) {
74 shared_segment
80 detach_segment(zend_shared_segment_posix *shared_segment) argument
[all...]
H A Dshared_alloc_shm.c128 static int detach_segment(zend_shared_segment_shm *shared_segment) argument
130 shmdt(shared_segment->common.p);
H A Dshared_alloc_win32.c177 zend_shared_segment *shared_segment; local
233 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *));
234 (*shared_segments_p)[0] = shared_segment;
288 shared_segment->p = mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS, 0, 0, 0, *wanted_mapping_base);
315 shared_segment->pos = 0;
316 shared_segment->size = requested_size;
323 static int detach_segment(zend_shared_segment *shared_segment) argument
H A Dzend_shared_alloc.h79 typedef int (*detach_segment_t)(zend_shared_segment *shared_segment);

Completed in 32 milliseconds