'\" t .\" Title: work_on_cpu .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "WORK_ON_CPU" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" work_on_cpu \- run a function in user context on a particular cpu .SH "SYNOPSIS" .HP \w'long\ work_on_cpu('u .BI "long work_on_cpu(int\ " "cpu" ", long\ (*" "fn" ")\ (void\ *), void\ *\ " "arg" ");" .SH "ARGUMENTS" .PP \fIcpu\fR .RS 4 the cpu to run on .RE .PP \fIfn\fR .RS 4 the function to run .RE .PP \fIarg\fR .RS 4 the function arg .RE .SH "DESCRIPTION" .PP It is up to the caller to ensure that the cpu doesn\*(Aqt go offline\&. The caller must not hold any locks which would prevent \fIfn\fR from completing\&. .SH "RETURN" .PP The value \fIfn\fR returns\&. .SH "COPYRIGHT" .br