函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\io_apic.c Create Date:2022-07-27 09:30:00
Last Modify:2020-03-16 21:24:45 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mp_irqdomain_create

函数原型:static int mp_irqdomain_create(int ioapic)

返回类型:int

参数:

类型参数名称
intioapic
2301  hwirqs等于mp_ioapic_pin_count(ioapic)
2302  ip等于ioapics[ioapic]
2303  cfg等于irqdomain_cfg
2304  gsi_cfg等于mp_ioapic_gsi_routing(ioapic)
2306  name等于"IO-APIC"
2308  如果type恒等于IOAPIC_DOMAIN_INVALID则返回:0
2311  init_irq_alloc_info( & info, NULL)
2312  type等于X86_IRQ_ALLOC_TYPE_IOAPIC
2313  ioapic_id等于mpc_ioapic_id(ioapic)
2314  parent等于irq_remapping_get_ir_irq_domain( & info)
2315  如果非parentparent等于x86_vector_domain
2317  否则name等于"IO-APIC-IR"
2321  如果dev
2322  fn等于of_node_to_fwnode(dev)
2323  否则
2324  fn等于irq_domain_alloc_named_id_fwnode(name, ioapic)
2325  如果非fn则返回:负ENOMEM
2329  irqdomain等于irq_domain_create_linear(fn, hwirqs, ops, (void * )(long)ioapic)
2333  如果非devq_domain_free_fwnode - Free a non-OF-backed fwnode_handle* Free a fwnode_handle allocated with irq_domain_alloc_fwnode.
2336  如果非irqdomain则返回:负ENOMEM
2339  parent等于parent
2341  如果type恒等于IOAPIC_DOMAIN_LEGACYtype恒等于IOAPIC_DOMAIN_STRICTioapic_dynirq_base等于两数取大(ioapic_dynirq_base, gsi_end + 1)
2346  返回:0
调用者
名称描述
setup_IO_APIC
mp_register_ioapicmp_register_ioapic - Register an IOAPIC device*@id: hardware IOAPIC ID*@address: physical address of IOAPIC register area*@gsi_base: base of GSI associated with the IOAPIC*@cfg: configuration information for the IOAPIC