devm_kstrdup — Allocate resource managed space and copy an existing string into that.
char * devm_kstrdup ( | struct device * dev, |
| const char * s, | |
gfp_t gfp); |
devDevice to allocate memory for
sthe string to duplicate
gfp
the GFP mask used in the devm_kmalloc call when
allocating memory