summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-07-04 23:27:09 +0000
committerdillon <dillon@FreeBSD.org>2001-07-04 23:27:09 +0000
commit93369f554a43c46419d56436721efe61e4b858c7 (patch)
tree81260d55ae91eebf4632f0a755612f23148b8fb8 /sys/sys
parent62d663b9b937d23cdb2e47513623bf3834ebac8e (diff)
downloadFreeBSD-src-93369f554a43c46419d56436721efe61e4b858c7.zip
FreeBSD-src-93369f554a43c46419d56436721efe61e4b858c7.tar.gz
Reorg vm_page.c into vm_page.c, vm_pageq.c, and vm_contig.c (for contigmalloc).
Also removed some spl's and added some VM mutexes, but they are not actually used yet, so this commit does not really make any operational changes to the system. vm_page.c relates to vm_page_t manipulation, including high level deactivation, activation, etc... vm_pageq.c relates to finding free pages and aquiring exclusive access to a page queue (exclusivity part not yet implemented). And the world still builds... :-)
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/mutex.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h
index 7c3c412..aedc24c 100644
--- a/sys/sys/mutex.h
+++ b/sys/sys/mutex.h
@@ -373,11 +373,21 @@ do { \
_mtx_assert((m), (what), __FILE__, __LINE__)
/*
- * GIANT_REQUIRED; - place at the beginning of a procedure
+ * GIANT_IRRELEVANT - empty place mark assertion for system startup code
+ * where serialization is implied or utterly trivial
+ * routines that do not need giant.
*
+ * GIANT_REQUIRED - Giant must be held on entry
*
+ * *_GIANT_DEPRECATED - Giant may or may not be held, we may hold giant here
+ * based on a sysctl, and no deeper subroutine
+ * may require giant.
+ *
+ * *_GIANT_OPTIONAL - Giant may or may not be held and no deeper subroutine
+ * may require giant.
*/
+#define GIANT_IRRELEVANT
#define GIANT_REQUIRED \
do { \
KASSERT(curproc->p_giant_optional == 0, ("Giant not optional at %s: %d", __FILE__, __LINE__)); \
@@ -395,6 +405,7 @@ do { \
#else /* INVARIANTS */
#define mtx_assert(m, what)
+#define GIANT_IRRELEVANT
#define GIANT_REQUIRED
#define START_GIANT_DEPRECATED(sysctl)
#define END_GIANT_DEPRECATED
OpenPOWER on IntegriCloud