kmem_cache_alloc_node

Name

kmem_cache_alloc_node --  Allocate an object on the specified node

Synopsis

void * kmem_cache_alloc_node (kmem_cache_t * cachep, int nodeid);

Arguments

cachep

The cache to allocate from.

nodeid

node number of the target node.

Description

Identical to kmem_cache_alloc, except that this function is slow and can sleep. And it will allocate memory on the given node, which can improve the performance for cpu bound structures.