Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115786169
D29556.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
844 B
Referenced Files
None
Subscribers
None
D29556.diff
View Options
diff --git a/sys/contrib/libnv/nv_impl.h b/sys/contrib/libnv/nv_impl.h
--- a/sys/contrib/libnv/nv_impl.h
+++ b/sys/contrib/libnv/nv_impl.h
@@ -52,13 +52,13 @@
#define NV_FLAG_IN_ARRAY 0x100
#ifdef _KERNEL
-#define nv_malloc(size) malloc((size), M_NVLIST, M_WAITOK)
+#define nv_malloc(size) malloc((size), M_NVLIST, M_NOWAIT)
#define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
- M_WAITOK | M_ZERO)
+ M_NOWAIT | M_ZERO)
#define nv_realloc(buf, size) realloc((buf), (size), M_NVLIST, \
- M_WAITOK)
+ M_NOWAIT)
#define nv_free(buf) free((buf), M_NVLIST)
-#define nv_strdup(buf) strdup((buf), M_NVLIST)
+#define nv_strdup(buf) strdup_flags((buf), M_NVLIST, M_NOWAIT)
#define nv_vasprintf(ptr, ...) vasprintf(ptr, M_NVLIST, __VA_ARGS__)
#define ERRNO_SET(var) do { } while (0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 29, 3:53 PM (15 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17842444
Default Alt Text
D29556.diff (844 B)
Attached To
Mode
D29556: libnv: Allow use in non-sleepable contexts
Attached
Detach File
Event Timeline
Log In to Comment