sar_get_device_mode(9)
π 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 π
- Kernel file
./drivers/platform/x86/intel/int1092/intel_sar.cβ go read it, iykyk π get_int_value(9)update_sar_data(9)parse_package(9)
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
- 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