函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:Convert between a 140 based task->prio, and our 102 based cpupri

函数原型:static int convert_prio(int prio)

返回类型:int

参数:

类型参数名称
intprio
32  如果prio恒等于CPUPRI_INVALIDcpupri等于CPUPRI_INVALID
34  否则如果prio恒等于MAX_PRIOcpupri等于CPUPRI_IDLE
36  否则如果prio大于等于MAX_RT_PRIOcpupri等于CPUPRI_NORMAL
38  否则cpupri等于MAX_RT_PRIOprio加1
41  返回:cpupri
调用者
名称描述
cpupri_findpupri_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_setpupri_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)