Function report |
Source Code:arch\x86\kernel\apm_32.c |
Create Date:2022-07-28 08:22:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:proc_apm_show
Proto:static int proc_apm_show(struct seq_file *m, void *v)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 = "?" |
1650 | ac_line_status = bx >> 8 & 0xff |
1651 | battery_status = bx & 0xff |
1652 | If (cx & 0xff) != 0xff Then percentage = cx & 0xff |
1655 | If connection_version > 0x100 Then |
1701 | seq_printf(m, "%s %d.%d 0x%02x 0x%02x 0x%02x 0x%02x %d%% %d %s\n", spaces , (version >> 8) & 0xff, version & 0xff, flags, ac_line_status, battery_status, battery_flag, percentage, time_units, units) |
1712 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |