generic_get_free_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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