'\" t .\" Title: execute_in_process_context .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "EXECUTE_IN_PROCESS_C" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" execute_in_process_context \- reliably execute the routine with user context .SH "SYNOPSIS" .HP \w'int\ execute_in_process_context('u .BI "int execute_in_process_context(work_func_t\ " "fn" ", struct\ execute_work\ *\ " "ew" ");" .SH "ARGUMENTS" .PP \fIfn\fR .RS 4 the function to execute .RE .PP \fIew\fR .RS 4 guaranteed storage for the execute work structure (must be available when the work executes) .RE .SH "DESCRIPTION" .PP Executes the function immediately if process context is available, otherwise schedules the function for delayed execution\&. .SH "RETURN" .PP 0 \- function was executed 1 \- function was scheduled for execution .SH "COPYRIGHT" .br