函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__inquire_remote_apic

函数原型:void __inquire_remote_apic(int apicid)

返回类型:void

参数:

类型参数名称
intapicid
665  unsigned i, regs[] = {APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4}
666  const char * const names[] = {"ID", "VERSION", "SPIV"}
670  打印信息("Inquiring remote APIC 0x%x...\n", apicid)
672 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(regs)循环
673  打印信息("... APIC 0x%x %s: ", apicid, names[i])
678  status等于safe_apic_wait_icr_idle()
679  如果status打印标准信息("a previous APIC delivery may have failed\n")
682  apic_icr_write(APIC_DM_REMRD | regs[i], apicid)
684  timeout等于0
685  循环
688 status恒等于APIC_ICR_RR_INPROGtimeout自加小于1000循环
691  :status恒等于APIC_ICR_RR_VALID
692  status等于apic_read(APIC_RRR)
693  打印标准信息("%08x\n", status)
694  退出
695  默认
696  打印标准信息("failed\n")