1DEVM_KSTRDUP(9) Driver Basics DEVM_KSTRDUP(9)
23
4
NAME
6devm_kstrdup - Allocate resource managed space and copy an existing
7string into that.
8
SYNOPSIS
10char * devm_kstrdup(struct device * dev, const char * s, gfp_t gfp);
11
ARGUMENTS
13dev
14Device to allocate memory for
1516
s
17the string to duplicate
1819
gfp
20the GFP mask used in the devm_kmalloc call when allocating memory
21
RETURNS
23Pointer to allocated string on success, NULL on failure.
24
COPYRIGHT
26Kernel Hackers Manual 3.10 June 2019 DEVM_KSTRDUP(9)