__apm_bios_call(9)
π __apm_bios_call(9)
okay so first things first, bestie: this little cutie lives in the Kernel API Manual section 9 (that's the kernel-API girlies, not your regular command-line girlies π). and no, section 9 is not a personality trait, it's just where all the kernel functions hang out. slay.
π NAME π
__apm_bios_call β make an APM BIOS 32bit call. literally that's the whole job. icon behavior.
β¨ SYNOPSIS β¨
long __apm_bios_call (void *_call );
π yes the spacing is a little feral, we don't fix it, we respect it.
πΈ ARGUMENTS πΈ
_callβ pointer tostruct apm_bios_call. that's it. that's the whole argument list. give her a pointer and let her cook π₯
π¦ DESCRIPTION π¦
so what does she do? she makes an APM call using the 32bit protected mode interface. very demure, very privileged-mode of her π
the caller is responsible for knowing if APM BIOS is configured and enabled β like, that's on you, bestie, she is not doing a vibe check on your BIOS for you π«Ά
heads up though: this call can disable interrupts for a long period of time on some laptops. yes, literally a long period. that's not a fun quirky character flaw, that's a real caveat β plan accordingly π
and where does the answer show up? the return value is in AH and the carry flag is loaded into AL. so cute, so x86 of her.
if there's an error, then the error code is returned in AH (bits 8-15 of eax) and this function returns non-zero. periodt.
π NOTE π
this makes the call on the current CPU. like, the one you're standing on right now. no sneaky migration, no "she's on tour", current CPU only π§
π SEE ALSO π
the kernel file ./arch/x86/kernel/apm_32.c, and also this whole friend group right here:
apm_error(9)apm_bios_call(9)__apm_bios_call_simple(9)apm_bios_call_simple(9)apm_driver_version(9)apm_get_event(9)set_power_state(9)set_system_power_state(9)apm_do_idle(9)apm_do_busy(9)apm_cpu_idle(9)apm_power_off(9)apm_enable_power_management(9)apm_get_power_status(9)apm_engage_power_management(9)apm_console_blank(9)
π and that's the page!! she ships out of./arch/x86/kernel, dated October 2026, and her official little name tag says__apm_bios_call(9)π go forth and make your protected-mode calls responsibly, bestie π β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms