Scroll to navigation

DEVM_KSTRDUP(9) Driver Basics DEVM_KSTRDUP(9)

NAME

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

SYNOPSIS

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

ARGUMENTS

dev

Device to allocate memory for

s

the string to duplicate

gfp

the GFP mask used in the devm_kmalloc call when allocating memory

RETURN

Pointer to allocated string on success, NULL on failure.

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.