zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCget_host_inventory_value_by_itemid                             *
 *                                                                            *
 * Purpose: find inventory value in automatically populated cache, if not     *
 *          found then look in main inventory cache                           *
 *                                                                            *
 ******************************************************************************/
DCget_host_inventory_value_by_itemid

Purpose: find inventory value in automatically populated cache, if not
found then look in main inventory cache
DCget_host_inventory_value_by_itemid Purpose : find inventory value in automatically populated cache if not found then look in main inventory cache
int	DCget_host_inventory_value_by_itemid(zbx_uint64_t itemid, char **replace_to, int value_idx)
{
	const ZBX_DC_ITEM	*dc_item;
	int			ret = FAIL;
	RDLOCK_CACHE;
	if (NULL != (dc_item = (ZBX_DC_ITEM *)zbx_hashset_search(&config->items, &itemid)))
		ret = dc_get_host_inventory_value_by_hostid(dc_item->hostid, replace_to, value_idx);
	UNLOCK_CACHE;
	return ret;
}
int DCget_host_inventory_value_by_itemid ( zbx_uint64_t itemid , char * * replace_to , int value_idx ) { const ZBX_DC_ITEM * dc_item ; int ret = FAIL ; RDLOCK_CACHE ; if ( NULL != ( dc_item = ( ZBX_DC_ITEM * ) zbx_hashset_search ( & config -> items , & itemid ) ) ) ret = dc_get_host_inventory_value_by_hostid ( dc_item -> hostid , replace_to , value_idx ) ; UNLOCK_CACHE ; return ret ; }
Function: DCget_host_inventory_value_by_itemid                             
                                                                            
 Purpose: find inventory value in automatically populated cache, if not     
          found then look in main inventory cache
Function : DCget_host_inventory_value_by_itemid Purpose : find inventory value in automatically populated cache if not found then look in main inventory cache