[dpdk-dev] [PATCH V11 1/3] eal: add uevent monitor api and callback func

Thomas Monjalon thomas at monjalon.net
Wed Jan 17 22:59:10 CET 2018


15/01/2018 11:48, Jeff Guo:
> + * It registers the callback for the specific event. Multiple
> + * callbacks cal be registered at the same time.
> + *
> + * @param device_name
> + *  The device name.
> + * @param cb_fn
> + *  callback address.
> + * @param cb_arg
> + *  address of parameter for callback.
> + *
> + * @return
> + *  - On success, zero.
> + *  - On failure, a negative value.
> + */
> +int rte_dev_callback_register(char *device_name, rte_dev_event_cb_fn cb_fn,
> +                                       void *cb_arg);

What is the device name?

I think we should register a callback for a rte_device or NULL (all devices).


More information about the dev mailing list