diff options
author | grog <grog@FreeBSD.org> | 1999-04-10 08:09:49 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-04-10 08:09:49 +0000 |
commit | fa23ff64d5f9747141c69d610398cd03506eb7fa (patch) | |
tree | 3b103f5960da495e219c257aad68a3b5b8d53349 /sys/dev/vinum/vinumhdr.h | |
parent | ff04614b5cca9405cef52d1dbd5e10147875655d (diff) | |
download | FreeBSD-src-fa23ff64d5f9747141c69d610398cd03506eb7fa.zip FreeBSD-src-fa23ff64d5f9747141c69d610398cd03506eb7fa.tar.gz |
Define macro LOCKDRIVE for debugging drive locking deadlocks.
Diffstat (limited to 'sys/dev/vinum/vinumhdr.h')
-rw-r--r-- | sys/dev/vinum/vinumhdr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumhdr.h b/sys/dev/vinum/vinumhdr.h index 14cc7af..38f3915 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 */ |