diff options
author | Tai-hwa Liang <avatar@FreeBSD.org> | 2005-07-01 15:21:30 +0000 |
---|---|---|
committer | Tai-hwa Liang <avatar@FreeBSD.org> | 2005-07-01 15:21:30 +0000 |
commit | 362abc449cf0944fed00f5fcba1ea2e2efe33ca3 (patch) | |
tree | 147319ac765fa09f2f2ee982d5fabcc2832eae98 /sys/cam/cam_xpt_periph.h | |
parent | d33db00c9bab4c13b1531958135bff56c275aa3d (diff) | |
download | src-362abc449cf0944fed00f5fcba1ea2e2efe33ca3.tar.gz src-362abc449cf0944fed00f5fcba1ea2e2efe33ca3.zip |
- Providing fine-grained malloc statistic by replacing M_DEVBUF with
module-specific malloc types. These should help us to pinpoint the
possible memory leakage in the future.
- Implementing xpt_alloc_ccb_nowait() and replacing all malloc/free based
CCB memory management with xpt_alloc_ccb[_nowait]/xpt_free_ccb. Hopefully
this would be helpful if someday we move the CCB allocator to use UMA
instead of malloc().
Encouraged by: jeffr, rwatson
Reviewed by: gibbs, scottl
Approved by: re (scottl)
Notes
Notes:
svn path=/head/; revision=147723
Diffstat (limited to 'sys/cam/cam_xpt_periph.h')
-rw-r--r-- | sys/cam/cam_xpt_periph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt_periph.h b/sys/cam/cam_xpt_periph.h index 129c53e8de62..c6b8cc26748f 100644 --- a/sys/cam/cam_xpt_periph.h +++ b/sys/cam/cam_xpt_periph.h @@ -39,6 +39,7 @@ #ifdef _KERNEL void xpt_polled_action(union ccb *ccb); union ccb *xpt_alloc_ccb(void); +union ccb *xpt_alloc_ccb_nowait(void); void xpt_free_ccb(union ccb *free_ccb); void xpt_release_ccb(union ccb *released_ccb); void xpt_schedule(struct cam_periph *perph, u_int32_t new_priority); |