acpi_os_map_iomem(9)
π NAME π
acpi_os_map_iomem β get a virtual address for a given physical address range. This is from the Kernel API Manual, and the page is literally acpi_os_map_iomem(9). Slay. π
β¨ SYNOPSIS β¨
void __iomem __ref * acpi_os_map_iomem (acpi_physical_address phys ,
acpi_size size );
π ARGUMENTS π
physβ start of the physical address range to map. Like, the beginning of the range, bestie.sizeβ size of the physical address range to map. How much of the range weβre grabbing.
π¦ DESCRIPTION π¦
Okay so hereβs the vibe: it looks up the given physical address range in the list of existing ACPI memory mappings. If found, it gets a reference to it and returns a pointer to it β that pointer is its virtual address. If itβs not found, it maps it, adds it to that list, and returns a pointer to it. Iconic behavior, honestly. β¨
During early init β specifically when acpi_permanent_mmap has not been set yet β this routine simply calls __acpi_map_table to get the job done. No cap. π«Ά
π SEE ALSO π
- Kernel file
./drivers/acpi/osl.cβ plusacpi_os_unmap_iomem(9)andacpi_os_unmap_memory(9). Go read those too, bestie. π
Source/version: ./drivers/acpi β’ Date: October 2026 β’ Page: acpi_os_map_iomem(9) β bye bestie, go map those ranges responsibly π
β¨
π¦ 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