2 * (C) Copyright 2007-2011 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
11 #define LDEP_STACK_SIZE 10
14 void *ra
; /* return address */
15 void *lock
; /* the lock */
16 char *lockname
; /* name of this lock */
17 struct lock_class
*lclass
; /* the class for this lock */
24 struct lock_class
**deps
;
27 #define LOCK_CLASS(cname) \
28 struct lock_class cname = { \
35 extern void ldep_on();
37 extern void ldep_lock(void *lock
, struct lock_class
*c
, char *lockname
);
38 extern void ldep_unlock(void *lock
, char *lockname
);
39 extern void ldep_no_locks();