Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\io_apic.c Create Date:2022-07-28 08:30:40
Last Modify:2020-03-16 21:24:45 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ioapic_setup_resources

Proto:static struct resource *__init ioapic_setup_resources(void)

Type:struct resource

Parameter:Nothing

2636  If nr_ioapics == 0 Then Return NULL
2639  n = This function updates target affinity of IOAPIC interrupts to include* the CPUs which came online during SMP bringup. + sizeof(structresource)
2640  n *= nr_ioapics
2642  mem = memblock_alloc(n, SMP_CACHE_BYTES)
2643  If Not mem Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2645  res = mem
2647  mem += sizeof(structresource) * nr_ioapics
2650  name = mem
2651  flags = IORESOURCE_MEM | Driver has marked this resource busy
2652  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
2653  mem += This function updates target affinity of IOAPIC interrupts to include* the CPUs which came online during SMP bringup.
2654  iomem_res = res[i]
2657  ioapic_resources = res
2659  Return res
Caller
NameDescribe
io_apic_init_mappings