Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apm_32.c Create Date:2022-07-28 08:22:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Run __apm_bios_call or __apm_bios_call_simple on CPU 0

Proto:static int on_cpu0(long (*fn)(void *), struct apm_bios_call *call)

Type:int

Parameter:

TypeParameterName
long (*fn
struct apm_bios_call *call
630  If get_cpu() == 0 Then
631  ret = fn(call)
632  put_cpu()
633  Else
634  put_cpu()
635  ret = work_on_cpu(0, fn, call)
639  If ret < 0 Then Error: -ENOMEM, or bits 8-15 of eax = ret
641  Else Error: -ENOMEM, or bits 8-15 of eax = Out only >> 8 & 0xff
644  Return ret
Caller
NameDescribe
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