Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\irq_32.c Create Date:2022-07-28 07:33:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Allocate per-cpu stacks for hardirq and softirq processing

Proto:int irq_init_percpu_irqstack(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
114  node = cpu_to_node(cpu)
117  If per_cpu(hardirq_stack_ptr, cpu) Then Return 0
120  ph = Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
121  If Not ph Then Return -ENOMEM
123  ps = Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
124  If Not ps Then
125  __free_pages(ph, THREAD_SIZE_ORDER)
126  Return -ENOMEM
129  per_cpu(hardirq_stack_ptr, cpu) = page_address(ph)
130  per_cpu(softirq_stack_ptr, cpu) = page_address(ps)
131  Return 0
Caller
NameDescribe
init_IRQ
common_cpu_up