Scroll to navigation

DEVM_KVASPRINTF(9) Driver Basics DEVM_KVASPRINTF(9)

NAME

devm_kvasprintf - Allocate resource managed space for the formatted string.

SYNOPSIS

char * devm_kvasprintf(struct device * dev, gfp_t gfp, const char * fmt, va_list ap);

ARGUMENTS

dev

Device to allocate memory for

gfp

the GFP mask used in the devm_kmalloc call when allocating memory

fmt

the formatted string to duplicate

ap

the list of tokens to be placed in the formatted string

RETURNS

Pointer to allocated string on success, NULL on failure.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10