generic_get_free_region(9)
π NAME π
Okay bestie, welcome to the generic_get_free_region(9) page from the Kernel API Manual β¨ β and its whole NAME moment is literally: generic_get_free_region β Get a free MTRR. Periodt π
.
β¨ SYNOPSIS β¨
int generic_get_free_region (unsigned long base , unsigned long size ,
int replace_reg );
π ARGUMENTS π
Hereβs the little group chat of arguments, no cap:
baseβ The starting (base) address of the region π«Ά.sizeβ The size (in bytes) of the region π.replace_regβ mtrr index to be replaced; set to invalid value if none π.
πΈ RETURN πΈ
On success, you get the index of the region β slay π. Otherwise, it returns negative on error π.
π¦ SEE ALSO π¦
Go peek at these besties when youβre done here:
- Kernel file
./arch/x86/kernel/cpu/mtrr/generic.c guest_force_mtrr_state(9)mtrr_type_lookup(9)set_fixed_range(9)set_fixed_ranges(9)set_mtrr_state(9)generic_set_mtrr(9)
xoxo, your kernel bestie π β source/version vibes from ./arch/x86/kernel/cpu/mtrr, dated October 2026, on the generic_get_free_region(9) page. bye bestie π«Άπ
π¦ 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