summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-06-25 17:43:10 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-06-25 17:43:10 +0000
commitef2949192076d12d99e69d6ef6daed70cd930adb (patch)
tree7018ae29e0bb74211201bc5089ca05525bc4639c /sys/dev/softraidvar.h
parentb1e9de2094a255b79a0e729875b220313709937c (diff)
use pools for the uio and iovec allocations in sr_crypto_getcryptop()
instead of malloc; OK hshoexer@ and macro@
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r--sys/dev/softraidvar.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index f44eeb0cb26..0b40b5ce047 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.59 2008/06/14 03:01:00 djm Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.60 2008/06/25 17:43:09 thib Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -429,6 +429,10 @@ struct sr_softc {
struct sr_discipline *sc_dis[SR_MAXSCSIBUS]; /* scsibus is u_int8_t */
};
+struct pool;
+extern struct pool sr_uiopl;
+extern struct pool sr_iovpl;
+
/* work units & ccbs */
int sr_alloc_ccb(struct sr_discipline *);
void sr_free_ccb(struct sr_discipline *);