src/dpdk/lib/librte_eal/common/eal_common_memzone.c
const struct rte_memzone *
rte_memzone_lookup(const char *name)
{
	struct rte_mem_config *mcfg;
	const struct rte_memzone *memzone = NULL;

	mcfg = rte_eal_get_configuration()->mem_config;

	rte_rwlock_read_lock(&mcfg->mlock);

	memzone = memzone_lookup_thread_unsafe(name);

	rte_rwlock_read_unlock(&mcfg->mlock);

	rte_eal_trace_memzone_lookup(name, memzone);
	return memzone;
}
/*
 * Lookup for the memzone identified by the given name
 */
Lookup for the memzone identified by the given name
Lookup for the memzone identified by the given name
const struct rte_memzone *
rte_memzone_lookup(const char *name)
{
	struct rte_mem_config *mcfg;
	const struct rte_memzone *memzone = NULL;
	mcfg = rte_eal_get_configuration()->mem_config;
	rte_rwlock_read_lock(&mcfg->mlock);
	memzone = memzone_lookup_thread_unsafe(name);
	rte_rwlock_read_unlock(&mcfg->mlock);
	rte_eal_trace_memzone_lookup(name, memzone);
	return memzone;
}
const struct rte_memzone * rte_memzone_lookup ( const char * name ) { struct rte_mem_config * mcfg ; const struct rte_memzone * memzone = NULL ; mcfg = rte_eal_get_configuration ( ) -> mem_config ; rte_rwlock_read_lock ( & mcfg -> mlock ) ; memzone = memzone_lookup_thread_unsafe ( name ) ; rte_rwlock_read_unlock ( & mcfg -> mlock ) ; rte_eal_trace_memzone_lookup ( name , memzone ) ; return memzone ; }
Lookup for the memzone identified by the given name
Lookup for the memzone identified by the given name