kthread_bind(9)

kthread_bind9

Bind a just-created kthread to a cpu.

Usage

void kthread_bind(struct task_struct * p, unsigned int cpu);

Arguments

p

thread created by kthread_create.

cpu

cpu (might not be online, must be possible) for k to run on.

Overview

This function is equivalent to set_cpus_allowed, except that cpu doesn't need to be online, and the thread must be stopped (i.e., just returned from kthread_create).

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.