apm_driver_version(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


xoxo, from ./arch/x86/kernel, dated October 2026 β€” stay slay, stay APM-aware πŸ’œ

πŸ“¦ where this page comes from