Lines Matching refs:shm_var
248 smart_str shm_var = {0}; in PHP_FUNCTION() local
257 php_var_serialize(&shm_var, &arg_var, &var_hash TSRMLS_CC); in PHP_FUNCTION()
262 smart_str_free(&shm_var); in PHP_FUNCTION()
267 ret = php_put_shm_data(shm_list_ptr->ptr, shm_key, shm_var.c, shm_var.len); in PHP_FUNCTION()
270 smart_str_free(&shm_var); in PHP_FUNCTION()
289 sysvshm_chunk *shm_var; in PHP_FUNCTION() local
305 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
306 shm_data = &shm_var->mem; in PHP_FUNCTION()
309 …_value, (const unsigned char **) &shm_data, (unsigned char *) shm_data + shm_var->length, &var_has… in PHP_FUNCTION()
361 sysvshm_chunk *shm_var; in php_put_shm_data() local
375 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data()
376 shm_var->key = key; in php_put_shm_data()
377 shm_var->length = len; in php_put_shm_data()
378 shm_var->next = total_size; in php_put_shm_data()
379 memcpy(&(shm_var->mem), data, len); in php_put_shm_data()
391 sysvshm_chunk *shm_var; in php_check_shm_data() local
399 shm_var = (sysvshm_chunk*) ((char *) ptr + pos); in php_check_shm_data()
400 if (shm_var->key == key) { in php_check_shm_data()
403 pos += shm_var->next; in php_check_shm_data()
405 if (shm_var->next <= 0 || pos < ptr->start) { in php_check_shm_data()