diff options
author | mjacob <mjacob@FreeBSD.org> | 2011-08-12 20:09:38 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2011-08-12 20:09:38 +0000 |
commit | 0ba1fe7d116a032383d49c9a252a5f09682c76f0 (patch) | |
tree | c0594ec3c48dc3903a1950befb6584a14a900a2c /sys/cam/cam_xpt.h | |
parent | ab2936096f3cdae594ff8d8fae7bf0f33d9d3286 (diff) | |
download | FreeBSD-src-0ba1fe7d116a032383d49c9a252a5f09682c76f0.zip FreeBSD-src-0ba1fe7d116a032383d49c9a252a5f09682c76f0.tar.gz |
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
Diffstat (limited to 'sys/cam/cam_xpt.h')
-rw-r--r-- | sys/cam/cam_xpt.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ - |