diff options
author | Jason Evans <jasone@FreeBSD.org> | 2000-10-12 22:37:28 +0000 |
---|---|---|
committer | Jason Evans <jasone@FreeBSD.org> | 2000-10-12 22:37:28 +0000 |
commit | 9722d88fba2c4016b66c281a16a1be84a32af95c (patch) | |
tree | 7ce9eab3c738ff1f9586ceac1b646763bab57396 /sys/sys/kernel.h | |
parent | 1df2031c1502b456210934bb3838bc23c64bb5d7 (diff) | |
download | src-9722d88fba2c4016b66c281a16a1be84a32af95c.tar.gz src-9722d88fba2c4016b66c281a16a1be84a32af95c.zip |
For lockmgr mutex protection, use an array of mutexes that are allocated
and initialized during boot. This avoids bloating sizeof(struct lock).
As a side effect, it is no longer necessary to enforce the assumtion that
lockinit()/lockdestroy() calls are paired, so the LK_VALID flag has been
removed.
Idea taken from: BSD/OS.
Notes
Notes:
svn path=/head/; revision=67046
Diffstat (limited to 'sys/sys/kernel.h')
-rw-r--r-- | sys/sys/kernel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index b30250840054..cc50426ef133 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -113,6 +113,7 @@ enum sysinit_sub_id { SI_SUB_VM = 0x1000000, /* virtual memory system init*/ SI_SUB_KMEM = 0x1800000, /* kernel memory*/ SI_SUB_KVM_RSRC = 0x1A00000, /* kvm operational limits*/ + SI_SUB_LOCK = 0x1B00000, /* lockmgr locks */ SI_SUB_CPU = 0x2000000, /* CPU resource(s)*/ SI_SUB_KLD = 0x2100000, /* KLD and module setup */ SI_SUB_INTRINSIC = 0x2200000, /* proc 0*/ |