mtrr_del(9)
π 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 thatmtrr_addhanded 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 π₯
- Kernel file
./arch/x86/kernel/cpu/mtrr/mtrr.cπ mtrr_rendezvous_handler(9)set_mtrr(9)mtrr_add_page(9)mtrr_add(9)mtrr_del_page(9)arch_phys_wc_add(9)mtrr_bp_init(9)mtrr_save_state(9)
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
- 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