CPU_COREDUMP(9)
β¨ NAME β¨
okay so bestie, welcome to CPU_COREDUMP(9) from the Kernel Developer's Manual β this page is literally all about cpu_coredump, the machine-dependent process core dump interface. no cap, that's the whole vibe. π
π SYNOPSIS π
#include <sys/signalvar.h>
int
cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr);
int
cpu_coredump32(struct lwp *l, void *iocookie, struct core32 *chdr);
yep, both cpu_coredump() and cpu_coredump32() are up there β keep those signatures exactly as they are, bestie. π«Ά
π¦ DESCRIPTION π¦
so cpu_coredump() is the machine-dependent interface that machine-independent code invokes to dump the machine-dependent header information at the very start of a process core dump. it's giving backstage-pass energy for the CPU-specific bits. β¨
the header information primarily consists of the CPU and floating-point registers. iconic.
here's the cast:
lβ thelwpstructure of the thread being dumped. main character energy. πiocookieβ an opaque pointer to be passed tocoredump_write(). don't peek inside, it's opaque for a reason. πchdrβ information about the machine-dependent header sections is returned in here. π«Ά
cpu_coredump() returns 0 on success and an appropriate error code on failure. periodt. π
π₯ CODE REFERENCES π₯
process core dumps are initiated within the file sys/kern/kern_sig.c. π«‘
process core dumps for ELF NetBSD binaries are performed within the files sys/kern/core_elf32.c or sys/kern/core_elf64.c. β¨
process core dumps for other NetBSD binaries are performed within the file sys/kern/core_netbsd.c. π
π SEE ALSO π
mwah π β this page is from Debian, dated December 24, 2005. now go dump those cores responsibly, bestie! π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2002, 2005 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms