1EXECUTE_IN_PROCESS_C(9) Driver Basics EXECUTE_IN_PROCESS_C(9)
2
3
4
6 execute_in_process_context - reliably execute the routine with user
7 context
8
10 int execute_in_process_context(work_func_t fn,
11 struct execute_work * ew);
12
14 fn
15 the function to execute
16
17 ew
18 guaranteed storage for the execute work structure (must be
19 available when the work executes)
20
22 Executes the function immediately if process context is available,
23 otherwise schedules the function for delayed execution.
24
26 0 - function was executed 1 - function was scheduled for execution
27
29Kernel Hackers Manual 2.6. November 2011 EXECUTE_IN_PROCESS_C(9)