devm_kzalloc — Resource-managed kzalloc
Device to allocate memory for
Allocation size
Allocation gfp flags
Managed kzalloc. Memory allocated with this function is automatically freed on driver detach. Like all other devres resources, guaranteed alignment is unsigned long long.
Pointer to allocated memory on success, NULL on failure.