Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153123368
D56444.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
576 B
Referenced Files
None
Subscribers
None
D56444.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/string.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/string.h
+++ sys/compat/linuxkpi/common/include/linux/string.h
@@ -98,6 +98,16 @@
return (dst);
}
+static inline void *
+kmemdup_array(const void *src, size_t count, size_t element_size, gfp_t gfp)
+{
+ void *dst;
+
+ dst = kmemdup(src, count * element_size, gfp);
+
+ return (dst);
+}
+
/* See slab.h for kvmalloc/kvfree(). */
static inline void *
kvmemdup(const void *src, size_t len, gfp_t gfp)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 8:01 AM (5 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31735512
Default Alt Text
D56444.diff (576 B)
Attached To
Mode
D56444: linuxkpi: Add `kmemdup_array()`
Attached
Detach File
Event Timeline
Log In to Comment