Name

__devm_alloc_percpu — Resource-managed alloc_percpu

Synopsis

void __percpu * __devm_alloc_percpu (struct device * dev,
 size_t size,
 size_t align);
 

Arguments

dev

Device to allocate per-cpu memory for

size

Size of per-cpu memory to allocate

align

Alignment of per-cpu memory to allocate

Description

Managed alloc_percpu. Per-cpu memory allocated with this function is automatically freed on driver detach.

RETURNS

Pointer to allocated memory on success, NULL on failure.