| Function report | 
| 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 activity | Download SCCT | Chinese | 
Name:check_events
Proto:static void check_events(void)
Type:void
Parameter:Nothing
| 1327 | If debug Then | 
| 1328 | If event <= NR_APM_EVENT_NAME Then printk(debug-level messages "apm: received %s notify\n", APM event names taken from the APM 1.2 specification. These are* the message codes that the BIOS uses to tell us about events[event - 1]) | 
| 1331 | Else printk(debug-level messages "apm: received unknown event 0x%02x\n", event) | 
| 1340 | Case event == Events (results of Get PM Event) | 
| 1341 | Case event == APM_USER_STANDBY | 
| 1347 | Case event == APM_USER_SUSPEND | 
| 1353 | Case event == APM_SYS_SUSPEND | 
| 1354 | If ignore_bounce Then | 
| 1355 | If connection_version > 0x100 Then set_system_power_state - set system wide power state*@state: which state to enter* Transition the entire system into a new APM power state. | 
| 1357 | Break | 
| 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 | 
| 1383 | dpm_resume_end(PMSG_RESUME) | 
| 1384 | queue_event(event, NULL) | 
| 1386 | ignore_normal_resume = 0 | 
| 1387 | Break | 
| 1389 | Case event == APM_CAPABILITY_CHANGE | 
| 1390 | Case event == APM_LOW_BATTERY | 
| 1391 | Case event == APM_POWER_STATUS_CHANGE | 
| 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 | 
| Name | Describe | 
|---|---|
| apm_event_handler | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |