kmem_cache_alloc_node(9)

kmem_cache_alloc_node9

Allocate an object on the specified node

Usage

void * kmem_cache_alloc_node(struct kmem_cache * cachep, gfp_t flags, int nodeid);

Arguments

cachep

The cache to allocate from.

flags

See kmalloc.

nodeid

node number of the target node.

Overview

Identical to kmem_cache_alloc but it will allocate memory on the given node, which can improve the performance for cpu bound structures.

Fallback to other node is possible if __GFP_THISNODE is not set.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.