1CPUPRI_FIND(9)                   Driver Basics                  CPUPRI_FIND(9)
2
3
4

NAME

6       cpupri_find - find the best (lowest-pri) CPU in the system
7

SYNOPSIS

9       int cpupri_find(struct cpupri * cp, struct task_struct * p,
10                       struct cpumask * lowest_mask);
11

ARGUMENTS

13       cp
14           The cpupri context
15
16       p
17           The task
18
19       lowest_mask
20           A mask to fill in with selected CPUs (or NULL)
21

NOTE

23       This function returns the recommended CPUs as calculated during the
24       current invocation. By the time the call returns, the CPUs may have in
25       fact changed priorities any number of times. While not ideal, it is not
26       an issue of correctness since the normal rebalancer logic will correct
27       any discrepancies created by racing against the uncertainty of the
28       current priority configuration.
29

RETURN

31       (int)bool - CPUs were found
32
34Kernel Hackers Manual 3.10         June 2019                    CPUPRI_FIND(9)
Impressum