kstrndup9
Allocate space for and copy an existing string
Usage
char * kstrndup(const char * s, size_t max, gfp_t gfp);
Arguments
s
the string to duplicate
max
read at most max chars from s
gfp
the GFP mask used in the kmalloc call when allocating memory
Note
Use kmemdup_nul instead if the size is known exactly.
Releases
2 releases since Debian 8 (Jessie); the text changed 1 time.