sar_get_device_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sar_get_device_mode(9) β€” a Kernel API Manual moment ✨

Okay bestie, welcome to the Kernel API Manual, section 9, and today's main character is sar_get_device_mode. It's giving "I ask the BIOS questions and it actually answers" energy, and honestly? iconic πŸŽ€

🌸 NAME 🌸

sar_get_device_mode β€” extraction of information from BIOS via DSM calls πŸ¦‹

✨ SYNOPSIS ✨

acpi_status sar_get_device_mode (struct platform_device *device );

🫢 ARGUMENTS 🫢

  • device β€” the ACPI device you're pulling the data from, no cap πŸ’–

πŸ’« DESCRIPTION πŸ’«

So what does it do? It retrieves the current device mode information from the BIOS. That's it, that's the vibe β€” you hand it a device, it goes and gets the mode info out of the BIOS. Lowkey simple, highkey useful πŸ”₯

⭐ RETURN ⭐

  • AE_OK β€” slay, it worked, success πŸ’…
  • AE_ERROR β€” not slay, something went wrong 😭

🌈 SEE ALSO 🌈


And that's the whole page, bestie, you ate it up πŸ“ Before you go: this lil beauty comes from that kernel source path ./drivers/platform/x86/intel/i..., dated October 2026 β€” so go forth, call your DSM, and get that device mode fr fr πŸ’œπŸ§šβœ¨

πŸ“¦ where this page comes from