函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apm_get_power_status - get current power state*@status: returned status*@bat: battery info*@life: estimated life* Obtain the current power status from the APM BIOS. We return a* status which gives the rough battery status, and current power* source

函数原型:static int apm_get_power_status(u_short *status, u_short *bat, u_short *life)

返回类型:int

参数:

类型参数名称
u_short *status
u_short *bat
u_short *life
1036  func等于APM_FUNC_GET_STATUS
1037  In and out 等于APM_DEVICE_ALL
1038  ecx等于0
1040  如果get_power_status_broken则返回:APM_32_UNSUPPORTED
1042  如果apm_bios_call - Make an APM BIOS 32bit call (on CPU 0)*@call: the apm_bios_call registers.* If there is an error, it is returned in @call.err.
1043  如果非 Error: -ENOMEM, or bits 8-15 of eax 则返回:APM_NO_ERROR
1045  返回: Error: -ENOMEM, or bits 8-15 of eax
1047  status等于 In and out
1048  bat等于ecx
1049  如果get_power_status_swabinminutes
1050  life等于swab16((u16)edx)
1051  life或等于0x8000
1052  否则life等于edx
1054  返回:Error codes
调用者
名称描述
proc_apm_show
apm