[dpdk-dev] [PATCH v3 11/29] eal: generic implementation for I/O device read/write access

Thomas Monjalon thomas.monjalon at 6wind.com
Sun Jan 15 22:29:42 CET 2017

2017-01-12 14:47, Jerin Jacob:
> +#define rte_read8_relaxed(addr) \
> +	({ uint8_t __v = *(const volatile uint8_t *)addr; __v; })

Why do you prefer a macro over an inline function?
It won't provide the same "debuggability".

More information about the dev mailing list