rproc_coredump(9)
π¦ rproc_coredump(9) β Kernel API Manual, bestie edition β¨
okay so this is rproc_coredump(9) from the Kernel API Manual and it's genuinely one of those little functions that does a LOT behind the scenes. coredump but for a remote processor? yes ma'am. let's get into it π
β¨ NAME β¨
rproc_coredump β perform coredump π«Ά
πΈ SYNOPSIS πΈ
void rproc_coredump (struct rproc *rproc );
π ARGUMENTS π
rprocβ the rproc handle, aka your main character pointer. you pass it in, it does the thing π
π₯ DESCRIPTION π₯
okay so picture this: this function is gonna generate an ELF header for all the registered segments, and then it creates a devcoredump device that's associated with rproc. iconic behavior, honestly.
and then β based on the coredump configuration β it does one of two vibes:
- direct mode π β it copies the segments straight from device memory to userspace. no middleman, no extra buffer, we love a direct path.
- buffered mode π§Ί β it copies the segments from device memory into a separate buffer, and then userspace can read from that buffer whenever it's ready.
now, about that first approach β the direct one β it's lowkey the memory-efficient queen π because it avoids using extra vmalloc memory. no cap, that's the whole selling point. but (and this is the part you need to know, bestie) it will stall the recovery flow until the dump is actually read by userspace. so likeβ¦ it's sitting there waiting on userspace to come collect. the tradeoff is real π
β οΈ reminder: direct copy = no extra vmalloc memory, but recovery flow stalls until userspace reads the dump. pick your fighter accordingly π₯
π SEE ALSO π
- Kernel file
./drivers/remoteproc/remoteproc_coredump.cβ go read the source, iykyk π rproc_coredump_cleanup(9)rproc_coredump_add_segment(9)rproc_coredump_add_custom_segment(9)rproc_coredump_set_elf_info(9)rproc_coredump_using_sections(9)
all the siblings, all in the family, go say hi π
and that's the page, bestie!! π this one lives in ./drivers/remoteproc and it's dated October 2026 β so like, future vibes only β thanks for reading rproc_coredump(9), 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