other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
KMEMDUP_NUL(9) | Memory Management in Linux | KMEMDUP_NUL(9) |
NAME¶
kmemdup_nul - Create a NUL-terminated string from unterminated dataSYNOPSIS¶
char *
kmemdup_nul(const char * s,
size_t len, gfp_t gfp);
ARGUMENTS¶
sThe data to stringify
len
The size of the data
gfp
the GFP mask used in the kmalloc call when
allocating memory
COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |