函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\smpboot.c Create Date:2022-07-27 09:24:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:duce the number of lines printed when booting a large cpu count system

函数原型:static void announce_cpu(int cpu, int apicid)

返回类型:void

参数:

类型参数名称
intcpu
intapicid
896  current_node等于NUMA_NO_NODE
897  node等于取得CPU的NUMA节点
900  如果非widthwidth等于num_digits(num_possible_cpus())加1
903  如果非node_widthnode_width等于num_digits(num_possible_nodes())加1
906  如果cpu恒等于1则printk(formational "x86: Booting SMP configuration:\n")
909  如果Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.小于SYSTEM_RUNNING
910  如果node不等于current_node
911  如果current_node大于负1则打印标准信息("\n")
913  current_node等于node
915  printk(formational ".... node %*s#%d, CPUs: ", node_width - num_digits(node), " ", node)
920  如果cpu恒等于1则打印标准信息("%*s", width + 1, " ")
923  打印标准信息("%*s#%d", width - num_digits(cpu), " ", cpu)
925  否则打印信息("Booting Node %d Processor %d APIC 0x%x\n", node, cpu, apicid)
调用者
名称描述
do_boot_cpuNOTE - on most systems this is a PHYSICAL apic ID, but on multiquad* (ie clustered apic addressing mode), this is a LOGICAL apic ID.* Returns zero if CPU booted OK, else error code from* ->wakeup_secondary_cpu.