3 #include <linux/slab.h>
4 #include <linux/string.h>
7 * kmemdup - duplicate region of memory
9 * @src: memory region to duplicate
10 * @len: memory region length
11 * @gfp: GFP mask to use
13 void *kmemdup(const void *src, size_t len, gfp_t gfp)
17 p = kmalloc(len, gfp);