subr_lock.c (154523) | subr_lock.c (154941) |
---|---|
1/*- 2 * Copyright (c) 2006 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * This module holds the global variables and functions used to maintain 32 * lock_object structures. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * This module holds the global variables and functions used to maintain 32 * lock_object structures. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/kern/subr_lock.c 154523 2006-01-18 18:02:50Z jhb $"); | 36__FBSDID("$FreeBSD: head/sys/kern/subr_lock.c 154941 2006-01-27 23:13:26Z jhb $"); |
37 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/ktr.h> 43#include <sys/linker_set.h> 44#include <sys/lock.h> 45 46#ifdef DDB 47#include <ddb/ddb.h> 48#endif 49 50CTASSERT(LOCK_CLASS_MAX == 15); 51 52struct lock_class *lock_classes[LOCK_CLASS_MAX + 1] = { 53 &lock_class_mtx_spin, 54 &lock_class_mtx_sleep, 55 &lock_class_sx, | 37 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/ktr.h> 43#include <sys/linker_set.h> 44#include <sys/lock.h> 45 46#ifdef DDB 47#include <ddb/ddb.h> 48#endif 49 50CTASSERT(LOCK_CLASS_MAX == 15); 51 52struct lock_class *lock_classes[LOCK_CLASS_MAX + 1] = { 53 &lock_class_mtx_spin, 54 &lock_class_mtx_sleep, 55 &lock_class_sx, |
56 &lock_class_rw, |
|
56}; 57 58void 59lock_init(struct lock_object *lock, struct lock_class *class, const char *name, 60 const char *type, int flags) 61{ 62 int i; 63 --- 51 unchanged lines hidden --- | 57}; 58 59void 60lock_init(struct lock_object *lock, struct lock_class *class, const char *name, 61 const char *type, int flags) 62{ 63 int i; 64 --- 51 unchanged lines hidden --- |