Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156552522
D36959.id111729.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
D36959.id111729.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h
--- a/sys/compat/linuxkpi/common/include/linux/slab.h
+++ b/sys/compat/linuxkpi/common/include/linux/slab.h
@@ -178,6 +178,12 @@
return (realloc(ptr, size, M_KMALLOC, linux_check_m_flags(flags)));
}
+static inline void *
+krealloc_array(void *ptr, size_t n, size_t size, gfp_t flags)
+{
+ return (realloc(ptr, n * size, M_KMALLOC, linux_check_m_flags(flags)));
+}
+
extern void linux_kfree_async(void *);
static inline void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 3:07 PM (15 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33087375
Default Alt Text
D36959.id111729.diff (545 B)
Attached To
Mode
D36959: linuxkpi: Add `krealloc_array()`
Attached
Detach File
Event Timeline
Log In to Comment