函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apic_update_vector

函数原型:static void apic_update_vector(struct irq_data *irqd, unsigned int newvec, unsigned int newcpu)

返回类型:void

参数:

类型参数名称
struct irq_data *irqd
unsigned intnewvec
unsigned intnewcpu
134  apicd等于apic_chip_data(irqd)
135  desc等于irq_data_to_desc(irqd)
136  managed等于irqd_affinity_is_managed(irqd)
138  lockdep_assert_held( & vector_lock)
140  trace_vector_update(中断号, newvec, newcpu, vector, cpu)
149  prev_vector等于0
150  如果非vectorvector恒等于MANAGED_IRQ_SHUTDOWN_VECTOR则转到:setnew
160  如果cpu_online(cpu)则
161  move_in_progress = true
162  prev_vector等于vector
163  prev_cpu等于cpu
164  否则
165  irq_matrix_free(vector_matrix, cpu, vector, managed)
169  setnew :
170  vector等于newvec
171  cpu等于newcpu
172  BUG_ON(!是错误或空)
173  per_cpu(vector_irq, newcpu)[newvec]等于desc
调用者
名称描述
assign_vector_locked
assign_managed_vector