Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\manage.c Create Date:2022-07-28 10:09:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:setup_irq_thread

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

Type:int

Parameter:

TypeParameterName
struct irqaction *new
unsigned intirq
boolsecondary
1221  struct sched_param param = {sched_priority = Maximum user real-time process priority / 2, }
1225  If Not secondary Then
1226  t = Create kernel thread(Interrupt handler thread, new, "irq/%d-%s", irq, name)
1228  Else
1229  t = Create kernel thread(Interrupt handler thread, new, "irq/%d-s-%s", irq, name)
1231  sched_priority -= 1
1234  If IS_ERR(t) Then Return PTR_ERR(t)
1237  sched_setscheduler_nocheck - change the scheduling policy and/or RT priority of a thread from kernelspace
1244  thread = get_task_struct(t)
1254  Atomically set a bit in memory
1255  Return 0
Caller
NameDescribe
__setup_irqregister an interrupt