devm_kzalloc9
Resource-managed kzalloc
Usage
void * devm_kzalloc(struct device * dev, size_t size, gfp_t gfp);
Arguments
dev
Device to allocate memory for
size
Allocation size
gfp
Allocation gfp flags
Overview
Managed kzalloc. Memory allocated with this function is automatically freed on driver detach. Like all other devres resources, guaranteed alignment is unsigned long long.
Returns
Pointer to allocated memory on success, NULL on failure.
Releases
4 releases since Debian 4.0 (Etch); the text changed 3 times.