函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int apm_bios_call_simple(unsigned int func, unsigned int ebx_in, unsigned int ecx_in, unsigned int *eax, int *err)

返回类型:int

参数:

类型参数名称
unsigned intfunc
unsigned intebx_in
unsigned intecx_in
unsigned int *eax
int *err
719  func等于func
720  In and out 等于ebx_in
721  ecx等于ecx_in
723  ret等于Run __apm_bios_call or __apm_bios_call_simple on CPU 0
724  eax等于 Out only
725  err等于 Error: -ENOMEM, or bits 8-15 of eax
726  返回:ret
调用者
名称描述
apm_driver_versionapm_driver_version - APM driver version*@val: loaded with the APM version on return* Retrieve the APM version supported by the BIOS
set_power_stateset_power_state - set the power management state*@what: which items to transition*@state: state to transition to* Request an APM change of state for one or more system devices
apm_do_idleapm_do_idle - perform power saving* This function notifies the BIOS that the processor is (in the view* of the OS) idle. It returns -1 in the event that the BIOS refuses* to handle the idle request. On a success the function returns 1
apm_do_busyapm_do_busy - inform the BIOS the CPU is busy* Request that the BIOS brings the CPU back to full performance.
apm_engage_power_managementapm_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).