Print this page
5513 KM_NORMALPRI should be documented in kmem_alloc(9f) and kmem_cache_create(9f) man pages
14465 Present KM_NOSLEEP_LAZY as documented interface
Change-Id: I002ec28ddf390650f1fcba1ca94f6abfdb241439

@@ -21,11 +21,11 @@
 
 /*
  * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2012 by Delphix. All rights reserved.
  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
- * Copyright 2018, Joyent, Inc.
+ * Copyright 2022 Joyent, Inc.
  */
 
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
 

@@ -47,10 +47,11 @@
 #define KM_SLEEP        0x0000  /* can block for memory; success guaranteed */
 #define KM_NOSLEEP      0x0001  /* cannot block for memory; may fail */
 #define KM_PANIC        0x0002  /* if memory cannot be allocated, panic */
 #define KM_PUSHPAGE     0x0004  /* can block for memory; may use reserve */
 #define KM_NORMALPRI    0x0008  /* with KM_NOSLEEP, lower priority allocation */
+#define KM_NOSLEEP_LAZY (KM_NOSLEEP | KM_NORMALPRI)  /* Syntactic sugar. */
 #define KM_VMFLAGS      0x00ff  /* flags that must match VM_* flags */
 
 #define KM_FLAGS        0xffff  /* all settable kmem flags */
 
 #if defined(_KERNEL) || defined(_FAKE_KERNEL)