Lines Matching refs:shm_varpos
97 static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos);
281 zend_long shm_varpos; in PHP_FUNCTION() local
297 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
299 if (shm_varpos < 0) { in PHP_FUNCTION()
303 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
340 zend_long shm_key, shm_varpos; in PHP_FUNCTION() local
353 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
355 if (shm_varpos < 0) { in PHP_FUNCTION()
359 php_remove_shm_data((shm_list_ptr->ptr), shm_varpos); in PHP_FUNCTION()
370 zend_long shm_varpos; in php_put_shm_data() local
374 if ((shm_varpos = php_check_shm_data(ptr, key)) > 0) { in php_put_shm_data()
375 php_remove_shm_data(ptr, shm_varpos); in php_put_shm_data()
422 static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos) in php_remove_shm_data() argument
429 chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos); in php_remove_shm_data()
430 next_chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos + chunk_ptr->next); in php_remove_shm_data()
432 memcpy_len = ptr->end-shm_varpos - chunk_ptr->next; in php_remove_shm_data()