aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/cam_xpt_periph.h
diff options
context:
space:
mode:
authorTai-hwa Liang <avatar@FreeBSD.org>2005-07-01 15:21:30 +0000
committerTai-hwa Liang <avatar@FreeBSD.org>2005-07-01 15:21:30 +0000
commit362abc449cf0944fed00f5fcba1ea2e2efe33ca3 (patch)
tree147319ac765fa09f2f2ee982d5fabcc2832eae98 /sys/cam/cam_xpt_periph.h
parentd33db00c9bab4c13b1531958135bff56c275aa3d (diff)
downloadsrc-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.h1
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);