Lines Matching refs:shm_varpos
95 static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos);
280 zend_long shm_varpos; in PHP_FUNCTION() local
296 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
298 if (shm_varpos < 0) { in PHP_FUNCTION()
302 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
339 zend_long shm_key, shm_varpos; in PHP_FUNCTION() local
352 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
354 if (shm_varpos < 0) { in PHP_FUNCTION()
358 php_remove_shm_data((shm_list_ptr->ptr), shm_varpos); in PHP_FUNCTION()
369 zend_long shm_varpos; in php_put_shm_data() local
373 if ((shm_varpos = php_check_shm_data(ptr, key)) > 0) { in php_put_shm_data()
374 php_remove_shm_data(ptr, shm_varpos); in php_put_shm_data()
421 static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos) in php_remove_shm_data() argument
428 chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos); in php_remove_shm_data()
429 next_chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos + chunk_ptr->next); in php_remove_shm_data()
431 memcpy_len = ptr->end-shm_varpos - chunk_ptr->next; in php_remove_shm_data()