函数逻辑报告 |
Source Code:kernel\sched\cpupri.c |
Create Date:2022-07-27 10:41:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Convert between a 140 based task->prio, and our 102 based cpupri
函数原型:static int convert_prio(int prio)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | prio |
32 | 如果prio恒等于CPUPRI_INVALID则cpupri等于CPUPRI_INVALID |
34 | 否则如果prio恒等于MAX_PRIO则cpupri等于CPUPRI_IDLE |
36 | 否则如果prio大于等于MAX_RT_PRIO则cpupri等于CPUPRI_NORMAL |
38 | 否则cpupri等于MAX_RT_PRIO减prio加1 |
41 | 返回:cpupri |
名称 | 描述 |
---|---|
cpupri_find | 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 |
cpupri_set | pupri_set - update the CPU priority setting*@cp: The cpupri context*@cpu: The target CPU*@newpri: The priority (INVALID-RT99) to assign to this CPU* Note: Assumes cpu_rq(cpu)->lock is locked* Returns: (void) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |