函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Allocate per-cpu stacks for hardirq and softirq processing

函数原型:int irq_init_percpu_irqstack(unsigned int cpu)

返回类型:int

参数:

类型参数名称
unsigned intcpu
114  node等于cpu_to_node(cpu)
117  如果per_cpu(hardirq_stack_ptr, cpu)则返回: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  如果非ph则返回:负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  如果非ps
125  __free_pages(ph, THREAD_SIZE_ORDER)
126  返回:负ENOMEM
129  per_cpu(hardirq_stack_ptr, cpu)等于page_address(ph)
130  per_cpu(softirq_stack_ptr, cpu)等于page_address(ps)
131  返回:0
调用者
名称描述
init_IRQ体系相关中断初始化
common_cpu_up