函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Run __apm_bios_call or __apm_bios_call_simple on CPU 0

函数原型:static int on_cpu0(long (*fn)(void *), struct apm_bios_call *call)

返回类型:int

参数:

类型参数名称
long (*fn
struct apm_bios_call *call
630  如果get_cpu()恒等于0则
631  ret等于fn(call)
632  put_cpu()
633  否则
634  put_cpu()
635  ret等于work_on_cpu(0, fn, call)
639  如果ret小于0则 Error: -ENOMEM, or bits 8-15 of eax 等于ret
641  否则 Error: -ENOMEM, or bits 8-15 of eax 等于 Out only 右移8位按位与0xff
644  返回:ret
调用者
名称描述
apm_bios_callapm_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.
apm_bios_call_simpleapm_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