aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2011-02-25 10:11:01 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2011-02-25 10:11:01 +0000
commitde5b19526b7350b9c608ae4bf0bd80b91e51a5df (patch)
tree777029c0673c0c489ae84b9e4b20c9e41ad56aac /sys/kern/kern_lock.c
parentfb4f617201be5ffa847f92058c2551cf63405d4f (diff)
downloadsrc-de5b19526b7350b9c608ae4bf0bd80b91e51a5df.tar.gz
src-de5b19526b7350b9c608ae4bf0bd80b91e51a5df.zip
Add some FEATURE macros for various features (AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/
PMC/SYSV/...). No FreeBSD version bump, the userland application to query the features will be committed last and can serve as an indication of the availablility if needed. Sponsored by: Google Summer of Code 2010 Submitted by: kibab Reviewed by: arch@ (parts by rwatson, trasz, jhb) X-MFC after: to be determined in last commit with code from this project
Notes
Notes: svn path=/head/; revision=219028
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 290da0510f84..8e5546ee3071 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1299,6 +1299,10 @@ lockstatus(struct lock *lk)
}
#ifdef INVARIANT_SUPPORT
+
+FEATURE(invariant_support,
+ "Support for modules compiled with INVARIANTS option");
+
#ifndef INVARIANTS
#undef _lockmgr_assert
#endif