函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\mpparse.c Create Date:2022-07-27 09:25:37
Last Modify:2020-03-16 21:44:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:smp_scan_config

函数原型:static int __init smp_scan_config(unsigned long base, unsigned long length)

返回类型:int

参数:

类型参数名称
unsigned longbase
unsigned longlength
579  ret等于0
581  Define the default level of output to be very little* This can be turned up by using apic=verbose for more* information and apic=debug for _lots_ of information.* apic_verbosity is defined in apic.c(APIC_VERBOSE, "Scan for SMP in [mem %#010lx-%#010lx]\n", base, base + length - 1)
583  BUILD_BUG_ON - break compile if a condition is true(mpf的长度 != 16)
585 length大于0循环
586  bp等于early_memremap(base, length)
587  mpf等于bp
596  mpf_base等于base
597  mpf_found = true
599  打印信息("found SMP MP-table at [mem %#010lx-%#010lx]\n", base, base + mpf的长度 - 1)
606  ret等于1
608  early_memunmap(bp, length)
610  如果ret退出
613  base加等于16
614  length减等于16
616  返回:ret
调用者
名称描述
default_find_smp_config