Lines Matching refs:shm_varpos
121 static int php_remove_shm_data(sysvshm_chunk_head *ptr, long shm_varpos);
288 long shm_varpos; in PHP_FUNCTION() local
299 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
301 if (shm_varpos < 0) { in PHP_FUNCTION()
305 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
338 long shm_key, shm_varpos; in PHP_FUNCTION() local
346 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
348 if (shm_varpos < 0) { in PHP_FUNCTION()
352 php_remove_shm_data((shm_list_ptr->ptr), shm_varpos); in PHP_FUNCTION()
363 long shm_varpos; in php_put_shm_data() local
367 if ((shm_varpos = php_check_shm_data(ptr, key)) > 0) { in php_put_shm_data()
368 php_remove_shm_data(ptr, shm_varpos); in php_put_shm_data()
415 static int php_remove_shm_data(sysvshm_chunk_head *ptr, long shm_varpos) in php_remove_shm_data() argument
420 chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos); in php_remove_shm_data()
421 next_chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos + chunk_ptr->next); in php_remove_shm_data()
423 memcpy_len = ptr->end-shm_varpos - chunk_ptr->next; in php_remove_shm_data()