1DEVM_KASPRINTF(9) Driver Basics DEVM_KASPRINTF(9)
2
3
4
6 devm_kasprintf - Allocate resource managed space and copy an existing
7 formatted string into that
8
10 char * devm_kasprintf(struct device * dev, gfp_t gfp, const char * fmt,
11 ...);
12
14 dev
15 Device to allocate memory for
16
17 gfp
18 the GFP mask used in the devm_kmalloc call when allocating memory
19
20 fmt
21 the string to duplicate
22
23 ...
24 variable arguments
25
27 Pointer to allocated string on success, NULL on failure.
28
30Kernel Hackers Manual 3.10 June 2019 DEVM_KASPRINTF(9)