kmemdup_nul — Create a NUL-terminated string from unterminated data
char * kmemdup_nul ( | const char * s, |
| size_t len, | |
gfp_t gfp); |
sThe data to stringify
lenThe size of the data
gfp
the GFP mask used in the kmalloc call when allocating memory