lock.h (207925) | lock.h (207929) |
---|---|
1/*- 2 * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * from BSDI $Id: mutex.h,v 2.7.2.35 2000/04/27 03:10:26 cp Exp $ | 1/*- 2 * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * from BSDI $Id: mutex.h,v 2.7.2.35 2000/04/27 03:10:26 cp Exp $ |
29 * $FreeBSD: head/sys/sys/lock.h 207925 2010-05-11 17:03:48Z attilio $ | 29 * $FreeBSD: head/sys/sys/lock.h 207929 2010-05-11 18:24:22Z attilio $ |
30 */ 31 32#ifndef _SYS_LOCK_H_ 33#define _SYS_LOCK_H_ 34 35#include <sys/queue.h> 36#include <sys/_lock.h> 37 --- 169 unchanged lines hidden (view full) --- 207void witness_checkorder(struct lock_object *, int, const char *, int, 208 struct lock_object *); 209void witness_lock(struct lock_object *, int, const char *, int); 210void witness_upgrade(struct lock_object *, int, const char *, int); 211void witness_downgrade(struct lock_object *, int, const char *, int); 212void witness_unlock(struct lock_object *, int, const char *, int); 213void witness_save(struct lock_object *, const char **, int *); 214void witness_restore(struct lock_object *, const char *, int); | 30 */ 31 32#ifndef _SYS_LOCK_H_ 33#define _SYS_LOCK_H_ 34 35#include <sys/queue.h> 36#include <sys/_lock.h> 37 --- 169 unchanged lines hidden (view full) --- 207void witness_checkorder(struct lock_object *, int, const char *, int, 208 struct lock_object *); 209void witness_lock(struct lock_object *, int, const char *, int); 210void witness_upgrade(struct lock_object *, int, const char *, int); 211void witness_downgrade(struct lock_object *, int, const char *, int); 212void witness_unlock(struct lock_object *, int, const char *, int); 213void witness_save(struct lock_object *, const char **, int *); 214void witness_restore(struct lock_object *, const char *, int); |
215int witness_list_locks(struct lock_list_entry **); | 215int witness_list_locks(struct lock_list_entry **, 216 int (*)(const char *, ...)); |
216int witness_warn(int, struct lock_object *, const char *, ...); 217void witness_assert(struct lock_object *, int, const char *, int); | 217int witness_warn(int, struct lock_object *, const char *, ...); 218void witness_assert(struct lock_object *, int, const char *, int); |
218void witness_display_spinlock(struct lock_object *, struct thread *); | 219void witness_display_spinlock(struct lock_object *, struct thread *, 220 int (*)(const char *, ...)); |
219int witness_line(struct lock_object *); 220void witness_norelease(struct lock_object *); 221void witness_releaseok(struct lock_object *); 222const char *witness_file(struct lock_object *); 223void witness_thread_exit(struct thread *); 224 225#ifdef WITNESS 226 --- 91 unchanged lines hidden --- | 221int witness_line(struct lock_object *); 222void witness_norelease(struct lock_object *); 223void witness_releaseok(struct lock_object *); 224const char *witness_file(struct lock_object *); 225void witness_thread_exit(struct thread *); 226 227#ifdef WITNESS 228 --- 91 unchanged lines hidden --- |