add_usable_mem(9)
π add_usable_mem(9) π
ok so this is a page from the Kernel API Manual (section 9, the kernel-functions girlypop section, iykyk) and honestly? it's a little one but she's doing her job. let's get into it β¨
πΈ NAME πΈ
add_usable_mem β literally the function that adds the usable memory ranges within the given memory range to the buffer. that's it, that's the whole vibe. no cap. π«Ά
π¦ SYNOPSIS π¦
int add_usable_mem (struct umem_info *um_info , u64 base , u64 end );
like she takes three things and she returns an int. iconic behavior tbh π
π ARGUMENTS π
um_infoβ the usable memory buffer and the ranges info. she's carrying both, main character energy fr fr πbaseβ base address of the memory range you wanna look for. the starting point bestie πendβ end address of the memory range you wanna look for. the finish line π
β DESCRIPTION β
Returns 0 on success. Returns a negative errno on error. that's genuinely the whole description, she's a short queen and we respect that ππ
ok lowkey important: on error it's a negative errno, not some random positive number. don't be out here misreading it, bestie π
π SEE ALSO π
the whole friend group, in order, no one left out π«Ά:
- Kernel file
./arch/powerpc/kexec/file_load_64.cβ go read her, she's the source of truth π check_realloc_usable_mem(9)kdump_setup_usable_lmb(9)add_usable_mem_property(9)update_usable_mem_fdt(9)load_backup_segment(9)load_elfcorehdr_segment(9)load_crashdump_segments_ppc64(9)setup_purgatory_ppc64(9)cpu_node_size(9)kexec_extra_fdt_size_ppc64(9)setup_new_fdt_ppc64(9)arch_kexec_kernel_image_probe(9)arch_kimage_file_post_load_cleanup(9)
π warning-ish note from me to you: every one of those is (9), so they're all kernel functions, not commands. don't go typing them into your shell, bestie, that's not the move π
and that's the page!! mwah π
source: ./arch/powerpc/kexec Β· dated October 2026 Β· go off, kexec file loader, you ate πβ¨π¦π
π¦ 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