Home
last modified time | relevance | path

Searched refs:shm_size (Results 1 – 5 of 5) sorted by relevance

/php-src/ext/sysvshm/
H A Dsysvshm.c133 zend_long shm_key, shm_id, shm_size, shm_flag = 0666; in PHP_FUNCTION() local
136 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &shm_key, &shm_size, &shm_size_is_n… in PHP_FUNCTION()
141 shm_size = php_sysvshm.init_mem; in PHP_FUNCTION()
144 if (shm_size < 1) { in PHP_FUNCTION()
151 if (shm_size < (zend_long)sizeof(sysvshm_chunk_head)) { in PHP_FUNCTION()
155 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION()
172 chunk_ptr->total = shm_size; in PHP_FUNCTION()
173 chunk_ptr->free = shm_size-chunk_ptr->end; in PHP_FUNCTION()
/php-src/TSRM/
H A Dtsrm_win32.c49 globals->shm_size = 0; in tsrm_win32_ctor()
72 for (ptr = globals->shm; ptr < (globals->shm + globals->shm_size); ptr++) { in tsrm_win32_dtor()
403 for (ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) { in shm_get()
414 if (ptr < (TWG(shm) + TWG(shm_size))) { in shm_get()
418 newptr = (shm_pair*)realloc((void*)TWG(shm), (TWG(shm_size)+1)*sizeof(shm_pair)); in shm_get()
424 ptr = newptr + TWG(shm_size); in shm_get()
425 TWG(shm_size)++; in shm_get()
677 for (shm_pair *ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) { in shmget()
H A Dtsrm_win32.h61 int shm_size; member
/php-src/ext/shmop/tests/
H A D001.phpt19 echo "shm size is: " . ($shm_size = shmop_size($shm_id)) . "\n";
/php-src/ext/opcache/
H A DZendAccelerator.c3209 size_t shm_size = ZCG(accel_directives).memory_consumption; local
3225 shm_size += jit_size;
3228 switch (zend_shared_alloc_startup(shm_size, jit_size)) {
3230 switch (zend_shared_alloc_startup(shm_size, 0)) {

Completed in 19 milliseconds