函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\manage.c Create Date:2022-07-27 11:09:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:setup_irq_thread

函数原型:static int setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)

返回类型:int

参数:

类型参数名称
struct irqaction *new
unsigned intirq
boolsecondary
1221  struct sched_param param = {sched_priority = Priority of a process goes from 0 / 2, }
1225  如果非secondary
1226  t等于kthread_create - create a kthread on the current node*@threadfn: the function to run in the thread*@data: data pointer for @threadfn()*@namefmt: printf-style format string for the thread name*@arg(Interrupt handler thread, new, "irq/%d-%s", irq, 设备名)
1228  否则
1229  t等于kthread_create - create a kthread on the current node*@threadfn: the function to run in the thread*@data: data pointer for @threadfn()*@namefmt: printf-style format string for the thread name*@arg(Interrupt handler thread, new, "irq/%d-s-%s", irq, 设备名)
1231  sched_priority减等于1
1234  如果是错误则返回:错误
1237  改变调度策略和线程优先级
1244  中断线程等于get_task_struct(t)
1254  设置内存位
1255  返回:0
调用者
名称描述
__setup_irq注册中断