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

Name:apm_engage_power_management - enable PM on a device*@device: identity of device*@enable: on/off* Activate or deactivate power management on either a specific device* or the entire system (%APM_DEVICE_ALL).

Proto:static int apm_engage_power_management(u_short device, int enable)

Type:int

Parameter:

TypeParameterName
u_shortdevice
intenable
1100  If enable == 0 && device == APM_DEVICE_ALL && flags & APM_BIOS_DISABLED Then Return APM_DISABLED
1103  If apm_bios_call_simple - make a simple APM BIOS 32bit call*@func: APM function to invoke*@ebx_in: EBX register value for BIOS call*@ecx_in: ECX register value for BIOS call*@eax: EAX register on return from the BIOS call*@err: bits Then Return err
1106  If device == APM_DEVICE_ALL Then
1107  If enable Then flags &= ~APM_BIOS_DISENGAGED
1109  Else flags |= APM_BIOS_DISENGAGED
1112  Return Error codes
Caller
NameDescribe
apm
apm_exit