Name

work_on_cpu — run a function in user context on a particular cpu

Synopsis

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

Arguments

cpu

the cpu to run on

fn

the function to run

arg

the function arg

Description

This will return -EINVAL in the cpu is not online, or the return value of fn otherwise.