src/dpdk/lib/librte_eal/common/eal_common_memory.c
int
rte_mem_event_callback_register(const char *name, rte_mem_event_callback_t clb,
		void *arg)
{
	const struct internal_config *internal_conf =
		eal_get_internal_configuration();

	/* FreeBSD boots with legacy mem enabled by default */
	if (internal_conf->legacy_mem) {
		RTE_LOG(DEBUG, EAL, "Registering mem event callbacks not supported\n");
		rte_errno = ENOTSUP;
		return -1;
	}
	return eal_memalloc_mem_event_callback_register(name, clb, arg);
}
/*
 * Defining here because declared in rte_memory.h, but the actual implementation
 * is in eal_common_memalloc.c, like all other memalloc internals.
 */
Defining here because declared in rte_memory.h, but the actual implementation
is in eal_common_memalloc.c, like all other memalloc internals.
Defining here because declared in rte_memory . h but the actual implementation is in eal_common_memalloc . c like all other memalloc internals .
int
rte_mem_event_callback_register(const char *name, rte_mem_event_callback_t clb,
		void *arg)
{
	const struct internal_config *internal_conf =
		eal_get_internal_configuration();
	if (internal_conf->legacy_mem) {
		RTE_LOG(DEBUG, EAL, "Registering mem event callbacks not supported\n");
		rte_errno = ENOTSUP;
		return -1;
	}
	return eal_memalloc_mem_event_callback_register(name, clb, arg);
}
int rte_mem_event_callback_register ( const char * name , rte_mem_event_callback_t clb , void * arg ) { const struct internal_config * internal_conf = eal_get_internal_configuration ( ) ; if ( internal_conf -> legacy_mem ) { RTE_LOG ( DEBUG , EAL , " \n " ) ; rte_errno = ENOTSUP ; return -1 ; } return eal_memalloc_mem_event_callback_register ( name , clb , arg ) ; }
Defining here because declared in rte_memory.h, but the actual implementation
 is in eal_common_memalloc.c, like all other memalloc internals.
Defining here because declared in rte_memory . h but the actual implementation is in eal_common_memalloc . c like all other memalloc internals .
/* FreeBSD boots with legacy mem enabled by default */