intrte_vdev_add_custom_scan(rte_vdev_scan_callbackcallback,void*user_arg)
Add a callback to be called on vdev scan before reading the devargs list.
This function cannot be called in a scan callback because of deadlock.
Parameterscallback The function to be called which can update the devargs list.
user_arg An opaque pointer passed to callback.
Returns
0 on success, negative on error
intrte_vdev_remove_custom_scan(rte_vdev_scan_callbackcallback,void*user_arg)
Remove a registered scan callback.
This function cannot be called in a scan callback because of deadlock.
Parameterscallback The registered function to be removed.
user_arg The associated opaque pointer or (void*)-1 for any.
Returns
0 on success
intrte_vdev_init(constchar*name,constchar*args)
Initialize a driver specified by name.
Parametersname The pointer to a driver name to be initialized.
args The pointer to arguments used by driver initialization.
Returns
0 on success, negative on error
intrte_vdev_uninit(constchar*name)
Uninitialize a driver specified by name.
Parametersname The pointer to a driver name to be uninitialized.
Returns
0 on success, negative on error