Function Report

Linux Kernel (v4.4)

Source File:kernel\irq\manage.c Create Date:2016-01-14 10:58:39
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:setup_affinity

Function:static int setup_affinity(struct irq_desc *desc, struct cpumask *mask)

Return Type:static int


Type Parameter NameRemarks
struct irq_desc * desc
struct cpumask * mask

Function description:Generic version of the affinity autoselector.

335  *set = irq_default_affinity
336  irq_desc_get_node(Interrupt descriptor)
339  If !__irq_can_set_affinity(Interrupt descriptor) then Returning 0
346  If irqd_has_set( &Interrupt descriptor, Interrupt affinity was set) then
348  If (*src1p&*src2p)!= 0 then set = IRQ affinity on SMP
350  Else irqd_clear( &Interrupt descriptor, Interrupt affinity was set)
354  dstp=*src1p&*src2p
355  If result of irq_desc_get_node(Interrupt descriptor) != NUMA_NO_NODE then
356  *nodemask = Returns a pointer to the cpumask of CPUs on Node'node'.
359  If (*src1p&*src2p)!= 0 then dstp=*src1p&*src2p
362  irq_do_set_affinity( &Interrupt descriptor, mask, false)
363  Returning 0
Function NameFunction description
irq_select_affinity_usrCalled when affinity is set via/proc/irq
__setup_irqregister an interrupt