kstrdup(9)
kstrdup – allocate space for and copy an existing string
Synopsis
char *kstrdup(const char *s, gfp_t gfp);Arguments
s
- the string to duplicate
gfp
- the GFP mask used in the
kmalloccall when allocating memory
Linux Manual Pages › Section 9
kstrdup – allocate space for and copy an existing string
char *kstrdup(const char *s, gfp_t gfp);s
gfp
kmalloc call when allocating memory