apm_bios_call(9)
π« apm_bios_call π«
okay so real talk, this one's from the Kernel API Manual (yes, that Kernel API Manual) and it's basically the group-chat announcement of APM BIOS calls. let's get into it bestie π
πΈ NAME πΈ
apm_bios_call β make an APM BIOS 32bit call (on CPU 0) π
like, specifically CPU 0. don't be weird about it.
β¨ SYNOPSIS β¨
int apm_bios_call (struct apm_bios_call *call );
that's it. that's the whole vibe. one function, one pointer, iconic behaviour π«Ά
π¦ ARGUMENTS π¦
callβ theapm_bios_callregisters. that's the whole thing you're handing over. it's giving "here's my whole personality in a struct" energy π
π DESCRIPTION π
so here's the tea: if there is an error, it gets returned in call.err. that's it. that's the lore. the error doesn't come back as some dramatic return value situation β it slides into call.err like it owns the place π
no cap, that's the entire documented behaviour. some functions are 40 paragraphs of chaos, and then there's apm_bios_call just being lowkey and mysterious about it π
π₯ SEE ALSO π₯
bestie, buckle up, because this list is long and honestly kind of iconic π
Kernel file ./arch/x86/kernel/apm_32.c, plus the whole extended family:
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)
like, the whole friend group showed up. __apm_bios_call_simple and apm_bios_call_simple both being here is giving siblings that insist they're different people, and honestly? respect π
β little reminder from your girl:apm_bios_calllives over in the kernel file./arch/x86/kernel/apm_32.c, so if you're going looking for it, that's the address. iykyk.
and that's the page!! mwah π written from ./arch/x86/kernel, dated October 2026. go forth and make your 32bit APM BIOS calls on CPU 0, bestie β slay π§ββοΈβ¨
π¦ 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