/* Description: Search the DOI definition list for a DOI definition with a DOI value that matches @doi. The caller is responsibile for calling rcu_read_lock(). Returns a pointer to the DOI definition on success and NULL on failure.  */
static struct cipso_v4_doi* cipso_v4_doi_search(u32 doi)
/* Description: Search the DOI definition list for a DOI definition with a DOI value that matches @doi. The caller is responsibile for calling rcu_read_lock(). Returns a pointer to the DOI definition on success and NULL on failure.  */
static struct cipso_v4_doi* cipso_v4_doi_search(u32 doi)
{
	struct cipso_v4_doi *iter;
	list_for_each_entry_rcu(iter, &cipso_v4_doi_list, list)
		if (iter->doi == doi && atomic_read(&iter->refcount))
			return iter;
	return NULL;
}