函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_events

函数原型:static void check_events(void)

返回类型:void

参数:

1326 event等于get_event()不等于0循环
1327  如果debug
1331  否则printk(debug-level messages "apm: received unknown event 0x%02x\n", event)
1335  如果ignore_bounceThese 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)则ignore_bounce等于0
1340  :event恒等于Events (results of Get PM Event)
1341  :event恒等于APM_USER_STANDBY
1342  queue_event(event, NULL)
1343  如果standbys_pending小于等于0则standby()
1345  退出
1347  :event恒等于APM_USER_SUSPEND
1353  :event恒等于APM_SYS_SUSPEND
1354  如果ignore_bounce
1367  如果ignore_sys_suspend则返回
1369  ignore_sys_suspend等于1
1370  queue_event(event, NULL)
1371  如果suspends_pending小于等于0则suspend(1)
1373  退出
1375  :event恒等于APM_NORMAL_RESUME
1376  :event恒等于APM_CRITICAL_RESUME
1377  :event恒等于APM_STANDBY_RESUME
1378  ignore_sys_suspend等于0
1379  last_resume等于jiffies
1380  ignore_bounce等于1
1381  如果event不等于APM_NORMAL_RESUMEignore_normal_resume恒等于0则
1386  ignore_normal_resume等于0
1387  退出
1389  :event恒等于APM_CAPABILITY_CHANGE
1390  :event恒等于APM_LOW_BATTERY
1392  queue_event(event, NULL)
1394  退出
1396  :event恒等于APM_UPDATE_TIME
1397  退出
1399  :event恒等于APM_CRITICAL_SUSPEND
1403  suspend(0)
1404  退出
调用者
名称描述
apm_event_handler