1WORK_ON_CPU(9) Driver Basics WORK_ON_CPU(9)
2
3
4
6 work_on_cpu - run a function in user context on a particular cpu
7
9 long work_on_cpu(unsigned int cpu, long (*fn) (void *), void * arg);
10
12 cpu
13 the cpu to run on
14
15 fn
16 the function to run
17
18 arg
19 the function arg
20
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 2.6. November 2011 WORK_ON_CPU(9)