函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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,

函数原型:int irq_set_irq_wake(unsigned int irq, unsigned int on)

返回类型:int

参数:

类型参数名称
unsigned intirq
unsigned inton
685  desc等于irq_get_desc_buslock(irq, & flags, IRQ_GET_DESC_CHECK_GLOBAL)
686  ret等于0
688  如果非desc则返回:负EINVAL
692  如果istate按位与IRQS_NMI
693  ret等于负EINVAL
694  转到:out_unlock
700  如果on
701  如果唤醒嵌套级数自加恒等于0则
702  ret等于set_irq_wake_real(irq, on)
703  如果ret唤醒嵌套级数等于0
705  否则设置中断标志
708  否则
709  如果唤醒嵌套级数恒等于0则
710  WARN(1, "Unbalanced IRQ %d wake disable\n", irq)
711  否则如果唤醒嵌套级数先自减恒等于0则
712  ret等于set_irq_wake_real(irq, on)
713  如果ret唤醒嵌套级数等于1
715  否则清除中断标志
720  out_unlock :
721  irq_put_desc_busunlock(desc, flags)
722  返回:ret