From 0ba1fe7d116a032383d49c9a252a5f09682c76f0 Mon Sep 17 00:00:00 2001 From: mjacob Date: Fri, 12 Aug 2011 20:09:38 +0000 Subject: Fixes for sure bus reference miscounting and potential device and target reference miscounts. It also adds a helper function to get the current reference counts for components of cam_path for debug aid. One minor style(9) change. Partially Obtained from: Chuck Tuffli (Emulex) Reviewed by: scsi@ (ken) Approved by: re (kib) MFC after: 1 month --- sys/cam/cam_xpt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/cam/cam_xpt.h') diff --git a/sys/cam/cam_xpt.h b/sys/cam/cam_xpt.h index f7d9b42..1d0e7f7 100644 --- a/sys/cam/cam_xpt.h +++ b/sys/cam/cam_xpt.h @@ -106,6 +106,9 @@ cam_status xpt_create_path_unlocked(struct cam_path **new_path_ptr, int xpt_getattr(char *buf, size_t len, const char *attr, struct cam_path *path); void xpt_free_path(struct cam_path *path); +void xpt_path_counts(struct cam_path *path, uint32_t *bus_ref, + uint32_t *periph_ref, uint32_t *target_ref, + uint32_t *device_ref); int xpt_path_comp(struct cam_path *path1, struct cam_path *path2); void xpt_print_path(struct cam_path *path); @@ -138,4 +141,3 @@ void xpt_release_path(struct cam_path *path); #endif /* _KERNEL */ #endif /* _CAM_CAM_XPT_H */ - -- cgit v1.1