函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:proc_apm_show

函数原型:static int proc_apm_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *v
1641  ac_line_status等于0xff
1642  battery_status等于0xff
1643  battery_flag等于0xff
1644  percentage等于负1
1645  time_units等于负1
1646  units等于"?"
1648  如果num_online_cpus()恒等于1且非error等于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
1650  ac_line_status等于bx右移8位按位与0xff
1651  battery_status等于bx按位与0xff
1652  如果cx按位与0xff的值不等于0xff则percentage等于cx按位与0xff
1655  如果connection_version大于0x100则
1656  battery_flag等于cx右移8位按位与0xff
1657  如果dx不等于0xffff则
1658  units等于如果dx按位与0x8000则"min"否则"sec"
1659  time_units等于dx按位与0x7fff
1701  seq_printf(m, "%s %d.%d 0x%02x 0x%02x 0x%02x 0x%02x %d%% %d %s\n", spaces , (电源管理版本 >> 8) & 0xff, 电源管理版本 & 0xff, 电源管理标志, ac_line_status, battery_status, battery_flag, percentage, time_units, units)
1712  返回:0