Function report |
Source Code:kernel\sched\cpupri.c |
Create Date:2022-07-28 09:41:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pupri_find - find the best (lowest-pri) CPU in the system*@cp: The cpupri context*@p: The task*@lowest_mask: A mask to fill in with selected CPUs (or NULL)* Note: This function returns the recommended CPUs as calculated during the* current invocation
Proto:int cpupri_find(struct cpupri *cp, struct task_struct *p, struct cpumask *lowest_mask)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpupri * | cp | |
struct task_struct * | p | |
struct cpumask * | lowest_mask |
62 | idx = 0 |
68 | vec = pri_to_cpu[idx] |
69 | skip = 0 |
71 | If Not atomic_read( & count) Then skip = 1 |
91 | smp_rmb() |
94 | If skip Then Continue |
100 | If lowest_mask Then |
115 | Return 1 |
118 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |