函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:suspend

函数原型:static int suspend(int vetoable)

返回类型:int

参数:

类型参数名称
intvetoable
1241  dpm_suspend_start(PMSG_SUSPEND)
1242  dpm_suspend_end(PMSG_SUSPEND)
1244  禁止中断()
1245  syscore_suspend()
1247  开中断()
1249  save_processor_state()
1250  err等于set_system_power_state - set system wide power state*@state: which state to enter* Transition the entire system into a new APM power state.
1251  ignore_normal_resume等于1
1252  restore_processor_state()
1254  禁止中断()
1255  reinit_timer()
1257  如果err恒等于APM_NO_ERRORerr等于Error codes
1259  如果err不等于Error codesapm_error - display an APM error*@str: information string*@err: APM BIOS return code* Write a meaningful log entry to the kernel log in the event of* an APM error. Note that this also handles (negative) kernel errors.
1261  err等于如果err恒等于Error codes则0否则负EIO
1263  syscore_resume()
1264  开中断()
1266  dpm_resume_start(PMSG_RESUME)
1267  dpm_resume_end(PMSG_RESUME)
1269  queue_event(APM_NORMAL_RESUME, NULL)
1270  加自旋锁
1271 as != NULL循环
1272  suspend_wait等于0
1273  suspend_result等于err
1275  自旋锁解锁
1276  wake_up_interruptible( & apm_suspend_waitqueue)
1277  返回:err
调用者
名称描述
check_events
do_ioctl
do_release