memtype_reserve_io(9)
β¨ NAME β¨
memtype_reserve_io β okay so this is the kernel API call that requests a memory type mapping for a region of memory π
πΈ SYNOPSIS πΈ
int memtype_reserve_io (resource_size_t start , resource_size_t end ,
enum page_cache_mode *type );
π ARGUMENTS π
startβ the start (physical address) of the region, bestie πendβ the end (physical address) of the region πtypeβ a pointer tomemtype, carrying the requested type. On success, you get back the requested type or any other compatible type that was available for the region β¨
π¦ DESCRIPTION π¦
Hereβs the whole vibe check: on success, it returns 0 β
. On failure, it returns non-zero π. Thatβs literally it, no cap.
π SEE ALSO π
- Kernel file
./arch/x86/mm/pat/memtype.c pat_bp_init(9)lookup_memtype(9)pat_pfn_immune_to_uc_mtrr(9)memtype_free_io(9)
kisses and sparkles π«Ά this pageβs source/version is ./arch/x86/mm/pat, and itβs dated October 2026 β periodt π
π¦ 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