other versions
- jessie 3.16.56-1+deb8u1
DEVM_KSTRDUP(9) | Driver Basics | DEVM_KSTRDUP(9) |
NAME¶
devm_kstrdup - Allocate resource managed space and copy an existing string into that.SYNOPSIS¶
char *
devm_kstrdup(struct device * dev,
const char * s,
gfp_t gfp);
ARGUMENTS¶
devDevice to allocate memory for
s
the string to duplicate
gfp
the GFP mask used in the devm_kmalloc call when
allocating memory
RETURNS¶
Pointer to allocated string on success, NULL on failure.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |