Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apm_32.c Create Date:2022-07-28 08:22:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_events

Proto:static void check_events(void)

Type:void

Parameter:Nothing

1326  When (event = get_event()) != 0 cycle
1327  If debug Then
1331  Else printk(debug-level messages "apm: received unknown event 0x%02x\n", event)
1335  If ignore_bounce && These inlines deal with timer wrapping correctly. You are * strongly encouraged to use them* 1. Because people otherwise forget* 2. Because if the timer wrap changes in future you won't have to* alter your driver code.(jiffies, last_resume + bounce_interval) Then ignore_bounce = 0
1340  Case event == Events (results of Get PM Event)
1341  Case event == APM_USER_STANDBY
1342  queue_event(event, NULL)
1343  If standbys_pending <= 0 Then standby()
1345  Break
1347  Case event == APM_USER_SUSPEND
1353  Case event == APM_SYS_SUSPEND
1354  If ignore_bounce Then
1367  If ignore_sys_suspend Then Return
1369  ignore_sys_suspend = 1
1370  queue_event(event, NULL)
1371  If suspends_pending <= 0 Then suspend(1)
1373  Break
1375  Case event == APM_NORMAL_RESUME
1376  Case event == APM_CRITICAL_RESUME
1377  Case event == APM_STANDBY_RESUME
1378  ignore_sys_suspend = 0
1379  last_resume = jiffies
1380  ignore_bounce = 1
1381  If event != APM_NORMAL_RESUME || ignore_normal_resume == 0 Then
1387  Break
1389  Case event == APM_CAPABILITY_CHANGE
1390  Case event == APM_LOW_BATTERY
1392  queue_event(event, NULL)
1394  Break
1396  Case event == APM_UPDATE_TIME
1397  Break
1399  Case event == APM_CRITICAL_SUSPEND
1403  suspend(0)
1404  Break
Caller
NameDescribe
apm_event_handler