arch_kimage_...load_cleanup(9)
β¨ arch_kimage_file_post_load_cleanup β the Kernel API Manual, bestie edition β¨
okay so you found the arch_kimage_...load_cleanup(9) page (yes the name is literally abbreviated with dots in the header, that's not me being lazy, that's the page title π
) and you want the tea. it lives in the Kernel API Manual, and honestly? it's a little cleanup goblin and i'm obsessed.
π NAME π
arch_kimage_file_post_load_cleanup β frees up all the allocations done while loading the image.
like, all of them. every single one. no crumbs left behind, periodt. π§Ήβ¨
π¦ SYNOPSIS π¦
int arch_kimage_file_post_load_cleanup (struct kimage *image );
that's the whole vibe. one function, one arg, int coming back at you.
πΈ ARGUMENTS πΈ
imageβ the kexec image that's being loaded. that's the thing you're cleaning up after, bestie. π«Ά
π DESCRIPTION π
so like, the whole point: it returns 0 on success, and a negative errno on error. that's it, that's the contract.
no cap, that's the entire description in the original and i'm not gonna invent lore that isn't there. 0 = slay β
, negative errno = something went sideways π.
ngl this is the "post-load cleanup" step, so think of it as the part where the function goes backstage and clears out all the allocations that got made while the image was loading. it frees them. all of them. π
π₯ SEE ALSO π₯
the kernel file it actually lives in:
- Kernel file
./arch/powerpc/kexec/file_load_64.c
and the whole friend group of related pages β every single one, not skipping anybody, iykyk:
check_realloc_usable_mem(9)add_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)
and that's the page!! π tiny page, big main character energy. it's sourced from ./arch/powerpc/kexec, dated October 2026, and yes that's the same arch_kimage_...load_cleanup(9) you started with β full circle, iconic, no notes. πβπ¦
π¦ 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