Allocate space for and copy an existing string
char * kstrdup(const char * s, gfp_t gfp);
s
the string to duplicate
gfp
the GFP mask used in the kmalloc call when allocating memory