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).