1DEVM_KSTRDUP(9)                  Driver Basics                 DEVM_KSTRDUP(9)
2
3
4

NAME

6       devm_kstrdup - Allocate resource managed space and copy an existing
7       string into that.
8

SYNOPSIS

10       char * devm_kstrdup(struct device * dev, const char * s, gfp_t gfp);
11

ARGUMENTS

13       dev
14           Device to allocate memory for
15
16       s
17           the string to duplicate
18
19       gfp
20           the GFP mask used in the devm_kmalloc call when allocating memory
21

RETURNS

23       Pointer to allocated string on success, NULL on failure.
24
26Kernel Hackers Manual 3.10         June 2019                   DEVM_KSTRDUP(9)
Impressum