Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_set_type - set the irq trigger type for an irq*@irq: irq number*@type: IRQ_TYPE_{LEVEL,EDGE}_* value - see include/linux/irq.h

Proto:int irq_set_irq_type(unsigned int irq, unsigned int type)

Type:int

Parameter:

TypeParameterName
unsigned intirq
unsigned inttype
71  desc = irq_get_desc_buslock(irq, & flags, IRQ_GET_DESC_CHECK_GLOBAL)
72  ret = 0
74  If Not desc Then Return -EINVAL
77  ret = __irq_set_trigger(desc, type)
78  irq_put_desc_busunlock(desc, flags)
79  Return ret