/* hpsb_get_hostinfo_bykey - retrieve a hostinfo pointer by its alternate key  */
void* hpsb_get_hostinfo_bykey(struct hpsb_highlevel *hl, unsigned long key)
/* hpsb_get_hostinfo_bykey - retrieve a hostinfo pointer by its alternate key  */
void* hpsb_get_hostinfo_bykey(struct hpsb_highlevel *hl, unsigned long key)
{
	struct hl_host_info *hi;
	void *data = NULL;
	if (!hl)
		return NULL;
	read_lock(&hl->host_info_lock);
	list_for_each_entry(hi, &hl->host_info_list, list) {
		if (hi->key == key) {
			data = hi->data;
			break;
		}
	}
	read_unlock(&hl->host_info_lock);
	return data;
}