Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_set_irq_wake - control irq power management wakeup*@irq: interrupt to control*@on: enable/disable power management wakeup* Enable/disable power management wakeup mode, which is* disabled by default. Enables and disables must match,

Proto:int irq_set_irq_wake(unsigned int irq, unsigned int on)

Type:int

Parameter:

TypeParameterName
unsigned intirq
unsigned inton
685  desc = irq_get_desc_buslock(irq, & flags, IRQ_GET_DESC_CHECK_GLOBAL)
686  ret = 0
688  If Not desc Then Return -EINVAL
692  If istate & IRQS_NMI Then
693  ret = -EINVAL
694  Go to out_unlock
700  If on Then
701  If nested wake enables ++ == 0 Then
703  If ret Then nested wake enables = 0
708  Else
709  If nested wake enables == 0 Then
710  WARN(1, "Unbalanced IRQ %d wake disable\n", irq)
711  Else if -- nested wake enables == 0 Then
713  If ret Then nested wake enables = 1
720  out_unlock :
721  irq_put_desc_busunlock(desc, flags)
722  Return ret