函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\isolation.c Create Date:2022-07-27 10:46:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:housekeeping_setup

函数原型:static int __init housekeeping_setup(char *str, enum hk_flags flags)

返回类型:int

参数:

类型参数名称
char *str
enum hk_flagsflags
86  alloc_bootmem_cpumask_var( & non_housekeeping_mask)
87  err等于从用户空间中提取CPU信息
88  如果err小于0或cpumask_last(non_housekeeping_mask)大于等于nr_cpu_ids
89  打印警告信息("Housekeeping: nohz_full= or isolcpus= incorrect CPU range\n")
90  free_bootmem_cpumask_var(non_housekeeping_mask)
91  返回:0
94  alloc_bootmem_cpumask_var( & tmp)
95  如果非housekeeping_flags
96  alloc_bootmem_cpumask_var( & housekeeping_mask)
97  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
100  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
102  打印警告信息("Housekeeping: must include one present CPU, using boot CPU:%d\n", 当前cpu ID())
107  否则
108  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
109  如果pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.__cpumask_clear_cpu(当前cpu ID(), non_housekeeping_mask)
111  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
113  打印警告信息("Housekeeping: nohz_full= must match isolcpus=\n")
116  返回:0
119  free_bootmem_cpumask_var(tmp)
121  如果flags按位与HK_FLAG_TICK且非housekeeping_flags按位与HK_FLAG_TICK的值则
124  否则
125  打印警告信息("Housekeeping: nohz unsupported. Build with CONFIG_NO_HZ_FULL\n")
128  返回:0
132  housekeeping_flags或等于flags
134  free_bootmem_cpumask_var(non_housekeeping_mask)
136  返回:1
调用者
名称描述
housekeeping_nohz_full_setup
housekeeping_isolcpus_setup