aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vinum/vinumhdr.h
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-04-10 08:09:49 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-04-10 08:09:49 +0000
commitc73d47fca5d9d95de82589d53b924a7dca8b2d8a (patch)
tree57247e05e338fe4b58fd3d665e0458171afebd07 /sys/dev/vinum/vinumhdr.h
parent385e19fcb67a137b3583484973f00f8e8178711c (diff)
downloadsrc-c73d47fca5d9d95de82589d53b924a7dca8b2d8a.tar.gz
src-c73d47fca5d9d95de82589d53b924a7dca8b2d8a.zip
Define macro LOCKDRIVE for debugging drive locking deadlocks.
Notes
Notes: svn path=/head/; revision=45535
Diffstat (limited to 'sys/dev/vinum/vinumhdr.h')
-rw-r--r--sys/dev/vinum/vinumhdr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumhdr.h b/sys/dev/vinum/vinumhdr.h
index 14cc7af88df1..38f3915aff43 100644
--- a/sys/dev/vinum/vinumhdr.h
+++ b/sys/dev/vinum/vinumhdr.h
@@ -35,7 +35,7 @@
*/
/* Header files used by all modules */
-/* $Id: vinumhdr.h,v 1.11 1998/12/30 05:11:15 grog Exp grog $ */
+/* $Id: vinumhdr.h,v 1.12 1999/01/28 08:58:33 grog Exp grog $ */
#ifdef KERNEL
#define REALLYKERNEL
@@ -92,9 +92,11 @@
#define Free(x) FFree ((x), __FILE__, __LINE__) /* show where we came from */
caddr_t MMalloc (int size, char *, int);
void FFree (void *mem, char *, int);
+#define LOCKDRIVE(d) lockdrive (d, __FILE__, __LINE__)
#else
#define Malloc(x) malloc((x), M_DEVBUF, M_WAITOK)
#define Free(x) free((x), M_DEVBUF)
+#define LOCKDRIVE(d) lockdrive (d)
#endif
#else
#define Malloc(x) malloc ((x)) /* just the size */