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:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:suspend

Proto:static int suspend(int vetoable)

Type:int

Parameter:

TypeParameterName
intvetoable
1241  dpm_suspend_start(PMSG_SUSPEND)
1242  dpm_suspend_end(PMSG_SUSPEND)
1244  local_irq_disable()
1245  syscore_suspend()
1247  The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
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  local_irq_disable()
1255  reinit_timer()
1257  If err == APM_NO_ERROR Then err = Error codes
1259  If err != Error codes Then apm_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 = If err == Error codes Then 0 Else -EIO
1263  syscore_resume()
1264  The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
1266  dpm_resume_start(PMSG_RESUME)
1267  dpm_resume_end(PMSG_RESUME)
1269  queue_event(APM_NORMAL_RESUME, NULL)
1270  spin_lock( & user_list_lock)
1271  When as != NULL cycle
1272  suspend_wait = 0
1273  suspend_result = err
1275  spin_unlock( & user_list_lock)
1276  wake_up_interruptible( & apm_suspend_waitqueue)
1277  Return err
Caller
NameDescribe
check_events
do_ioctl
do_release