Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:assign_vector_locked

Proto:static int assign_vector_locked(struct irq_data *irqd, const struct cpumask *dest)

Type:int

Parameter:

TypeParameterName
struct irq_data *irqd
const struct cpumask *dest
223  apicd = apic_chip_data(irqd)
224  resvd = has_reserved
225  cpu = cpu
226  vector = vector
228  lockdep_assert_held( & vector_lock)
235  If vector && cpu_online(cpu) && pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return 0
244  If move_in_progress || Not hlist_unhashed( & clist) Then Return -EBUSY
247  vector = irq_matrix_alloc(vector_matrix, dest, resvd, & cpu)
248  trace_vector_alloc(irq, vector, resvd, vector)
249  If vector < 0 Then Return vector
251  apic_update_vector(irqd, vector, cpu)
252  apic_update_irq_cfg(irqd, vector, cpu)
254  Return 0
Caller
NameDescribe
assign_irq_vector
assign_irq_vector_any_locked