__apm_bios_call_simple(9)
πΈ __apm_bios_call_simple β the kernel API manual, bestie edition πΈ
okay so real talk, we are deep in __apm_bios_call_simple(9) territory today and honestly? it's giving "niche but essential." this is the 9 section of the manual, so yeah, kernel API hours. buckle up π
β¨ NAME β¨
__apm_bios_call_simple β make an APM BIOS 32bit call (on CPU 0) π
β¨ SYNOPSIS β¨
long __apm_bios_call_simple (void *_call );
β¨ ARGUMENTS β¨
_callβ pointer tostruct apm_bios_call. that's it. that's the whole argument. she's low maintenance π
β¨ DESCRIPTION β¨
okay so what this does is make a BIOS call that returns one value only, or literally just status. super minimal, super demure of it honestly.
here's the tea though π« β if there's an error, the error code comes back in AH (that's bits 8-15 of eax for anyone keeping score) and this function returns non-zero. it can also return -ENOMEM, which, like, valid.
this one is used for the simpler BIOS operations. the easy stuff. the "no thoughts head empty" of BIOS calls π¦
β οΈ big warning bestie: this call may hold interrupts off for a long time on some laptops. like, a long time. no cap. do not sleep on that. π
β¨ NOTE β¨
heads up β this makes the call on the current CPU. current, not CPU 0, even though the NAME line up there says CPU 0. that's the vibe. iykyk π
β¨ SEE ALSO β¨
this makes the call from the kernel file ./arch/x86/kernel/apm_32.c β and look at this 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)
and that's the whole page, periodt πβ¨ this came to you from the ./arch/x86/kernel source, dated October 2026, and yes she ate, no crumbs left behind ππ bye bestie, go make some BIOS calls responsibly π§π
π¦ 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