apm_bios_call_simple(9)
π apm_bios_call_simple β the little BIOS call that could β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is apm_bios_call_simple(9). it's giving "small but mighty" energy, and honestly? iconic. π
πΈ NAME πΈ
apm_bios_call_simple β make a simple APM BIOS 32bit call. that's it, that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
int apm_bios_call_simple (u32 func , u32 ebx_in , u32 ecx_in , u32 *eax
, int *err );
like, look at her. five args, one int return, zero drama. π¦
π«Ά ARGUMENTS π«Ά
funcβ the APM function you wanna invoke. pick your fighter. βebx_inβ theEBXregister value for the BIOS call. yes babe, you're setting registers by hand, main character energy fr. π₯ecx_inβ theECXregister value for the BIOS call. the other half of the register duo, we stan. πeaxβ theEAXregister on return from the BIOS call. this is where the answer comes back to you, like a text from your bestie. πerrβ bits. (yes, that's the entire description. it's giving mysterious. iykyk.) π
π DESCRIPTION π
so here's the tea: you use apm_bios_call_simple to make a BIOS call that returns one value only, or just status. lowkey minimalist. π§
if there's an error, then the error code is returned in err and this function returns non-zero. so like, check your return value, bestie, please. π
this one's used for simpler BIOS operations β hence the name, she's not doing too much. π
β οΈ heads up queen: this call may hold interrupts off for a long time on some laptops. like, a long time. don't say i didn't warn you. π
π SEE ALSO π
kernel file ./arch/x86/kernel/apm_32.c, plus the whole friend group:
apm_error(9)__apm_bios_call(9)apm_bios_call(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 a whole squad of power-management girlies. π
okay that's the whole page bestie, go forth and make your simple APM BIOS 32bit calls responsibly πβ¨
π this little love letter lives in ./arch/x86/kernel and the manual page itself is dated October 2026. ty for reading, mwah. π«Ά
π¦ 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