[dpdk-dev] [RFC PATCH] eal:Add new API for parsing args at rte_eal_init time
Stephen Hemminger
stephen at networkplumber.org
Thu Jun 4 02:12:55 CEST 2015
On Wed, 3 Jun 2015 13:49:53 -0500
Keith Wiles <keith.wiles at intel.com> wrote:
> +/* Launch threads, called at application init() and parse app args. */
> +int
> +rte_eal_init_parse(int argc, char **argv,
> + int (*parse)(int, char **))
> +{
> + int ret;
> +
> + ret = rte_eal_init(argc, argv);
> + if ((ret >= 0) && (parse != NULL)) {
> + argc -= ret;
> + argv += ret;
This won't work C is call by value.
More information about the dev
mailing list