'\" t .\" Title: cpupri_find .\" 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 "CPUPRI_FIND" "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" cpupri_find \- find the best (lowest\-pri) CPU in the system .SH "SYNOPSIS" .HP \w'int\ cpupri_find('u .BI "int cpupri_find(struct\ cpupri\ *\ " "cp" ", struct\ task_struct\ *\ " "p" ", struct\ cpumask\ *\ " "lowest_mask" ");" .SH "ARGUMENTS" .PP \fIcp\fR .RS 4 The cpupri context .RE .PP \fIp\fR .RS 4 The task .RE .PP \fIlowest_mask\fR .RS 4 A mask to fill in with selected CPUs (or NULL) .RE .SH "NOTE" .PP This function returns the recommended CPUs as calculated during the current invocation\&. By the time the call returns, the CPUs may have in fact changed priorities any number of times\&. While not ideal, it is not an issue of correctness since the normal rebalancer logic will correct any discrepancies created by racing against the uncertainty of the current priority configuration\&. .SH "RETURN" .PP (int)bool \- CPUs were found .SH "COPYRIGHT" .br