1WORK_ON_CPU(9)                   Driver Basics                  WORK_ON_CPU(9)
2
3
4

NAME

6       work_on_cpu - run a function in user context on a particular cpu
7

SYNOPSIS

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

ARGUMENTS

12       cpu
13           the cpu to run on
14
15       fn
16           the function to run
17
18       arg
19           the function arg
20

DESCRIPTION

22       This will return the value fn returns. It is up to the caller to ensure
23       that the cpu doesn't go offline. The caller must not hold any locks
24       which would prevent fn from completing.
25
27Kernel Hackers Manual 3.10         June 2019                    WORK_ON_CPU(9)
Impressum