summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2014-02-22 05:13:35 +0000
committermarkj <markj@FreeBSD.org>2014-02-22 05:13:35 +0000
commit95ac3c80e1d67d3c0fcf4e2d6b54d534042422b2 (patch)
treee5ee0eca6179d97c367da0af828221dedf0b6c73 /sys/cddl
parente6b40423035d77338ab4182e05eee3fb8a20ef2e (diff)
downloadFreeBSD-src-95ac3c80e1d67d3c0fcf4e2d6b54d534042422b2.zip
FreeBSD-src-95ac3c80e1d67d3c0fcf4e2d6b54d534042422b2.tar.gz
Define the KM_NORMALPRI flag for kmem_alloc(), as it is used in some
upstream DTrace code. It indicates that the kernel memory allocator need not attempt to satisfy non-blocking allocations in low-memory conditions. This has no direct equivalent in the malloc(9) flags, so it is just defined to 0 for now.
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/compat/opensolaris/sys/kmem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/kmem.h b/sys/cddl/compat/opensolaris/sys/kmem.h
index d6179a1..ee6b33f 100644
--- a/sys/cddl/compat/opensolaris/sys/kmem.h
+++ b/sys/cddl/compat/opensolaris/sys/kmem.h
@@ -47,6 +47,7 @@ MALLOC_DECLARE(M_SOLARIS);
#define KM_PUSHPAGE M_WAITOK
#define KM_NOSLEEP M_NOWAIT
#define KM_NODEBUG M_NODUMP
+#define KM_NORMALPRI 0
#define KMC_NODEBUG UMA_ZONE_NODUMP
#define KMC_NOTOUCH 0
OpenPOWER on IntegriCloud