mtrr_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mtrr_del(9) πŸ’…

okay so this is a page from the Kernel API Manual β€” yes bestie, we're in the kernel now, put your hair up πŸŽ€


✨ NAME ✨

mtrr_del β€” delete a memory type region πŸ—‘οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

int mtrr_del (int reg , unsigned long base , unsigned long size );

like, that's the whole vibe. three args, one int back. simple queen behavior πŸ‘‘


🌸 ARGUMENTS 🌸

  • reg β€” the register that mtrr_add handed you back πŸŽ€
  • base β€” the physical base address, fr fr πŸ“
  • size β€” how big the region is πŸ“

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜•: if you supply a register, then base and size are literally ignored. and ngl, that's exactly how drivers should call it β€” that's the main character way to do it πŸ’…

this call releases an MTRR region 🫢 if the usage count drops all the way down to zero, the register gets freed and the region goes back to its default state β€” bye bye, back to factory settings ✨

on success, the register is returned 😌 on failure, you get a negative error code 😭 so like… check your return values, bestie. always.

no cap, this is the cleanup-and-glow-down function. treat it with respect 🧚

πŸ”₯ SEE ALSO πŸ”₯

like a whole friend group of syscalls-adjacent kernel functions, iykyk πŸ‘―β€β™€οΈ


and that's the page!! πŸ’œ this one lives under ./arch/x86/kernel/cpu/mtrr and it's dated October 2026 β€” so like, mark your calendars bestie, mwah πŸ«ΆπŸ’–πŸŒˆ

πŸ“¦ where this page comes from