Function Report

Linux Kernel (v4.4)

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

Function Name:setup_irq_thread

Function:static int setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)

Return Type:static int


Type Parameter NameRemarks
struct irqaction * new
unsigned int irq
bool secondary

Function description:

1063  Structure that describes scheduling parameters = {.Scheduling priority = Maximum user real-time process priority / 2, }
1065  If !secondary then
1067  t = Create kernel thread
1068  Else
1070  t = Create kernel thread
1071  Scheduling priority -= 1
1074  If IS_ERR(t) then Returning PTR_ERR(t)
1077  change the scheduling policy and/or RT priority of a thread from kernelspace.
1084  get_task_struct
1085  thread pointer for threaded interrupts = t
1095  Atomically set a bit in memory
1096  Returning 0
Function NameFunction description
__setup_irqregister an interrupt