diff options
author | scottl <scottl@FreeBSD.org> | 2007-05-16 16:54:23 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2007-05-16 16:54:23 +0000 |
commit | 74448961ec9a8ecb496066cacac4aee33258b2b0 (patch) | |
tree | eb4208c40ec28ee618733168a87c1e69768e1c1a /sys/cam/cam_xpt.h | |
parent | 04e8b672c852d872cc214c6745d7cddca1d5080c (diff) | |
download | FreeBSD-src-74448961ec9a8ecb496066cacac4aee33258b2b0.zip FreeBSD-src-74448961ec9a8ecb496066cacac4aee33258b2b0.tar.gz |
Add a helper function for registering async callbacks. Besides
eliminating a lot of duplicated code, this also fixes a locking edge case.
Diffstat (limited to 'sys/cam/cam_xpt.h')
-rw-r--r-- | sys/cam/cam_xpt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.h b/sys/cam/cam_xpt.h index deed466..26ca657 100644 --- a/sys/cam/cam_xpt.h +++ b/sys/cam/cam_xpt.h @@ -79,6 +79,8 @@ void xpt_async(u_int32_t async_code, struct cam_path *path, void xpt_rescan(union ccb *ccb); void xpt_lock_buses(void); void xpt_unlock_buses(void); +cam_status xpt_register_async(int event, ac_callback_t *cbfunc, + void *cbarg, struct cam_path *path); #endif /* _KERNEL */ #endif /* _CAM_CAM_XPT_H */ |