函数逻辑报告 |
Source Code:arch\x86\kernel\apm_32.c |
Create Date:2022-07-27 09:22:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:apm
函数原型:static int apm(void *unused)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | unused |
1731 | set_cpus_allowed_ptr(当前进程, cpumask_of - the cpumask containing just a given cpu*@cpu: the cpu (<= nr_cpu_ids)(0)) |
1734 | 如果connection_version恒等于0则 |
1735 | connection_version等于电源管理版本 |
1736 | 如果connection_version大于0x100则 |
1751 | 如果debug则printk(formational "apm: Connection version %d.%d\n", (connection_version >> 8) & 0xff, connection_version & 0xff) |
1771 | 如果电源管理标志按位与APM_BIOS_DISENGAGED且connection_version大于0x0100则 |
1774 | 如果error则 |
1780 | 如果debug且num_online_cpus()恒等于1或smp的值则 |
1782 | 如果error则printk(formational "apm: power status not available\n") |
1784 | 否则 |
1786 | 当: & == 0 |
1787 | power_stat等于"off line" |
1788 | 退出 |
1789 | 当: & == 1 |
1790 | power_stat等于"on line" |
1791 | 退出 |
1792 | 当: & == 2 |
1793 | power_stat等于"on backup power" |
1794 | 退出 |
1795 | 默认 |
1796 | power_stat等于"unknown" |
1797 | 退出 |
1800 | 当: & == 0 |
1803 | 当: & == 1 |
1806 | 当: & == 2 |
1809 | 当: & == 3 |
1812 | 默认 |
1816 | printk(formational "apm: AC %s, battery status %s, battery life ", power_stat, bat_stat) |
1823 | 如果connection_version大于0x100则 |
1838 | 如果power_off则pm_power_off等于apm_power_off - ask the BIOS to power off* Handle the power off sequence |
1841 | 如果num_online_cpus()恒等于1或smp则 |
1851 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |