__alloc_percpu

Name

__alloc_percpu --  allocate one copy of the object for every present

Synopsis

void * __alloc_percpu (size_t size, size_t align);

Arguments

size

how many bytes of memory are required.

align

the alignment, which can't be greater than SMP_CACHE_BYTES.

Description

cpu in the system, zeroing them. Objects should be dereferenced using per_cpu_ptr/get_cpu_ptr macros only.