crash_exclude_mem_range(9)
πΈ NAME πΈ
okay so bestie, welcome to crash_exclude_mem_range(9) from the Kernel API Manual π this one is literally about excluding a mem range for existing ranges. that's the whole vibe, no cap.
β¨ SYNOPSIS β¨
int crash_exclude_mem_range (struct crash_mem *mem , unsigned long long
mstart , unsigned long long mend );
π ARGUMENTS π
memβmem->rangecontains an array of ranges sorted in ascending order. slay, we love an ordered array β¨mstartβ the start of to-be-excluded range.mendβ the start of to-be-excluded range. (yes bestie, the page says βstartβ again here β not me inventing anything, just copying it exactly π )
π¦ DESCRIPTION π¦
ok so if you are unsure if a range split will happen, and you want to avoid the function call failing because of -ENOMEM, always make sure mem->max_nr_ranges == mem->nr_ranges + 1 before calling the function each time. like, every single time, no cap π₯
It returns 0 if a memory range is excluded successfully. It returns -ENOMEM if mem->ranges doesnβt have space to hold split ranges π thatβs the failure vibe, okay?
π₯ SEE ALSO π₯
- Kernel file
./kernel/crash_core.c
cute little sign-off: this page is from ./kernel, in the Kernel API Manual, dated October 2026. byeee π«Άππ
π¦ 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