Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 2014 05:13:35 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262329 - head/sys/cddl/compat/opensolaris/sys
Message-ID:  <201402220513.s1M5DZG9061113@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sat Feb 22 05:13:35 2014
New Revision: 262329
URL: http://svnweb.freebsd.org/changeset/base/262329

Log:
  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.

Modified:
  head/sys/cddl/compat/opensolaris/sys/kmem.h

Modified: head/sys/cddl/compat/opensolaris/sys/kmem.h
==============================================================================
--- head/sys/cddl/compat/opensolaris/sys/kmem.h	Sat Feb 22 04:28:49 2014	(r262328)
+++ head/sys/cddl/compat/opensolaris/sys/kmem.h	Sat Feb 22 05:13:35 2014	(r262329)
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402220513.s1M5DZG9061113>