Scroll to navigation

KSTRDUP(9) Memory Management in Linux KSTRDUP(9)

NAME

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 kmalloc call when allocating memory

COPYRIGHT

April 2019 Kernel Hackers Manual 4.9.