Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_gc_set_wake - Set/clr wake bit for an interrupt*@d: irq_data*@on: Indicates whether the wake bit should be set or cleared* For chips where the wake from suspend functionality is not* configured in a separate register and the wakeup active state is

Proto:int irq_gc_set_wake(struct irq_data *d, unsigned int on)

Type:int

Parameter:

TypeParameterName
struct irq_data *d
unsigned inton
189  gc = irq_data_get_irq_chip_data(d)
190  mask = mask
192  If Not (mask & wake_enabled) Then Return -EINVAL
195  irq_gc_lock(gc)
196  If on Then wake_active |= mask
198  Else wake_active &= ~mask
200  irq_gc_unlock(gc)
201  Return 0