bus: add method to find device
authorJan Blunck <jblunck@infradead.org>
Fri, 30 Jun 2017 18:19:31 +0000 (20:19 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 3 Jul 2017 23:08:13 +0000 (01:08 +0200)
commit3a8f0bc68a90ef3f68504c474e4b09e90b7e1e03
tree11afae08b9c96d15ab390325bd6a8a78ed961e56
parent87bfa873afebbf73355310e25c2d19e9825c1e24
bus: add method to find device

This new method allows buses to expose their devices in a controlled
manner. A comparison function is provided by the user to discriminate
between devices, using arbitrary data as identifier.

It is possible to start an iteration from a specific point, in order to
continue a search.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_eal/common/include/rte_bus.h
lib/librte_eal/common/include/rte_dev.h