函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:查询一个中断线是否可用

函数原型:int can_request_irq(unsigned int irq, unsigned long irqflags)

返回类型:int

参数:

类型参数名称
unsigned intirq中断号
unsigned longirqflags
734  desc等于irq_get_desc_lock(中断号, & flags, 0)
735  canrequest等于0
737  如果非desc则返回:0
740  如果设置请求参数
741  如果非中断服务例程链表irqflags按位与中断动作标志按位与These flags used only by the kernel as part of the* irq handling routinescanrequest等于1
745  irq_put_desc_unlock(desc, flags)
746  返回:canrequest