work_on_cpu(9)

work_on_cpu9

Run a function in user context on a particular cpu

Usage

long work_on_cpu(int cpu, long (*fn) (void *), void * arg);

Arguments

cpu

the cpu to run on

fn

the function to run

arg

the function arg

Overview

It is up to the caller to ensure that the cpu doesn't go offline. The caller must not hold any locks which would prevent fn from completing.

Return

The value fn returns.

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. 8

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