DEVM_KASPRINTF(9) | Driver Basics | DEVM_KASPRINTF(9) |
NAME¶
devm_kasprintf - Allocate resource managed space and copy an existing formatted string into that
SYNOPSIS¶
char * devm_kasprintf(struct device * dev, gfp_t gfp, const char * fmt, ...);
ARGUMENTS¶
dev
Device to allocate memory for
gfp
the GFP mask used in the devm_kmalloc call when
allocating memory
fmt
the string to duplicate
...
variable arguments
RETURNS¶
Pointer to allocated string on success, NULL on failure.
COPYRIGHT¶
June 2024 | Kernel Hackers Manual 3.10 |