Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\cpuhotplug.c Create Date:2022-07-28 10:14:59
Last Modify:2020-03-17 14:50:00 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:irq_restore_affinity_of_irq

Proto:static void irq_restore_affinity_of_irq(struct irq_desc *desc, unsigned int cpu)

Type:void

Parameter:

TypeParameterName
struct irq_desc *desc
unsigned intcpu
176  data = irq_desc_get_irq_data(desc)
177  affinity = irq_data_get_affinity_mask(data)
179  If Not irqd_affinity_is_managed(data) || Not IRQ action list || Not irq_data_get_irq_chip(data) || Not 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
183  If irqd_is_managed_and_shutdown(data) Then
184  irq_startup(desc, IRQ_RESEND, IRQ_START_COND)
185  Return
193  If Not irqd_is_single_target(data) Then irq_set_affinity_locked(data, affinity, false)
Caller
NameDescribe
irq_affinity_online_cpuq_affinity_online_cpu - Restore affinity for managed interrupts*@cpu: Upcoming CPU for which interrupts should be restored