apm_bios_call_simple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the EBX register value for the BIOS call. yes babe, you're setting registers by hand, main character energy fr. πŸ”₯
  • ecx_in β€” the ECX register value for the BIOS call. the other half of the register duo, we stan. πŸ’œ
  • eax β€” the EAX register 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:

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