Function report |
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 activity | Download SCCT | Chinese |
Name:Allocate per-cpu stacks for hardirq and softirq processing
Proto:int irq_init_percpu_irqstack(unsigned int cpu)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | cpu |
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. |
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 |
Name | Describe |
---|---|
init_IRQ | |
common_cpu_up |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |