apm_driver_version(9)
okay bestie, welcome to apm_driver_version(9) from the Kernel API Manual β itβs the little APM driver version check with βask the BIOS what it supportsβ energy β¨
π NAME π
apm_driver_version β APM driver version. Thatβs the name, and it is literally here to grab the APM version π
π SYNOPSIS π
int apm_driver_version (u_short *val );
π¦ ARGUMENTS π¦
valβ on return, this gets loaded with the APM version π
πΈ DESCRIPTION πΈ
So the whole mission is simple: retrieve the APM version supported by the BIOS. The catch? This is only supported for APM 1.1 or higher. If you get an error, thatβs a big hint that APM 1.0 is probably present π
On entry, val should point to a value indicating the APM driver version. The high byte is the major number and the low byte is the minor number β both in BCD, no cap.
On return, val will hold the BIOS revision supported, in that same format. Iconic little round trip, honestly π«Ά
π₯ SEE ALSO π₯
Kernel file ./arch/x86/kernel/apm_32.c, plus this whole bestie squad:
apm_error(9)__apm_bios_call(9)apm_bios_call(9)__apm_bios_call_simple(9)apm_bios_call_simple(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)
xoxo, from ./arch/x86/kernel, dated October 2026 β stay slay, stay APM-aware π
π¦ 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