bus: add helper to handle sigbus
authorJeff Guo <jia.guo@intel.com>
Mon, 15 Oct 2018 11:27:25 +0000 (19:27 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Oct 2018 20:17:35 +0000 (22:17 +0200)
commit62e63653baf5fb20315c887bb3d21bebd0259e73
tree7f7d8c3fe7058d741070e19c27aa2845a5bcb445
parent5c96a299340fcb67a86217de656bbe63ba7ce15e
bus: add helper to handle sigbus

This patch aims to add a helper to iterate over all buses to find the
relevant bus to handle the sigbus error.

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Shaopeng He <shaopeng.he@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/common/eal_common_bus.c
lib/librte_eal/common/eal_private.h