Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\mpparse.c Create Date:2022-07-28 08:25:54
Last Modify:2020-03-16 21:44:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:replace_intsrc_all

Proto:static int __init replace_intsrc_all(struct mpc_table *mpc, unsigned long mpc_new_phys, unsigned long mpc_new_length)

Type:int

Parameter:

TypeParameterName
struct mpc_table *mpc
unsigned longmpc_new_phys
unsigned longmpc_new_length
750  count = size of mpc
751  nr_m_spare = 0
752  mpt = mpc + count
754  pr_info("mpc_length %x\n", Size of table )
755  When count < Size of table cycle
757  Case mpt == Followed by entries
758  skip_entry( & mpt, & count, sizeof(structmpc_cpu))
759  Break
760  Case mpt == MP_BUS
761  skip_entry( & mpt, & count, sizeof(structmpc_bus))
762  Break
763  Case mpt == MP_IOAPIC
764  skip_entry( & mpt, & count, sizeof(structmpc_ioapic))
765  Break
766  Case mpt == MP_INTSRC
767  check_irq_src((structmpc_intsrc * )mpt, & nr_m_spare)
768  skip_entry( & mpt, & count, sizeof(structmpc_intsrc))
769  Break
770  Case mpt == MP_LINTSRC
771  skip_entry( & mpt, & count, sizeof(structmpc_lintsrc))
772  Break
773  Default
776  Go to out
809  out :
811  checksum = 0
812  checksum -= Checksum an MP configuration block.
814  Return 0
Caller
NameDescribe
update_mp_table