函数逻辑报告 | 
Source Code:kernel\sched\cpupri.c | 
Create Date:2022-07-27 10:41:58 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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
函数原型:int cpupri_find(struct cpupri *cp, struct task_struct *p, struct cpumask *lowest_mask)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct cpupri * | cp | |
| struct task_struct * | p | |
| struct cpumask * | lowest_mask | 
| 62 | idx等于0 | 
| 68 | vec等于pri_to_cpu[idx] | 
| 69 | skip等于0 | 
| 71 | 如果非atomic_read( & count)则skip等于1 | 
| 91 | smp_rmb() | 
| 94 | 如果skip则继续下一循环 | 
| 100 | 如果lowest_mask则 | 
| 115 | 返回:1 | 
| 118 | 返回:0 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |