SysTutorials

Linux Manual Pages › Section 9

kmalloc_array(9)

kmalloc_array - allocate memory for an array.

Synopsis

void *kmalloc_array(size_t n, size_t size, gfp_t flags);

Arguments

n

number of elements.

size

element size.

flags

the type of memory to allocate (see kmalloc).

Copyright