1. NAME

devm_kzalloc - Resource-managed kzalloc

2. SYNOPSIS

void * devm_kzalloc(struct device *  dev , size_t  size , gfp_t  gfp );

3. ARGUMENTS

dev
    Device to allocate memory for

size
    Allocation size

gfp
    Allocation gfp flags

4. DESCRIPTION

Managed kzalloc. Memory allocated with this function is automatically freed on driver detach. Like all other devres resources, guaranteed alignment is unsigned long long.

5. RETURNS

Pointer to allocated memory on success, NULL on failure.

6. COPYRIGHT