CPU_DUMPCONF(9)

πŸ“¦ version 11.0, in nixpkgs unstable

✨ NAME ✨

okay so this is the CPU_DUMPCONF(9) page from the Kernel Developer's Manual, and it's literally about machine-dependent kernel core dumps πŸ’–

  • cpu_dumpconf, cpu_dump, cpu_dumpsize, dumpsys β€” machine-dependent kernel core dumps πŸ’…

πŸ› οΈ SYNOPSIS πŸ› οΈ

bestie, here's the exact include-and-prototype situation, no cap:

#include <sys/types.h>
#include <sys/systm.h>

void
cpu_dumpconf(void);

int
cpu_dump(int (*dump)(dev_t, daddr_t, void *, size_t), daddr_t *blknop);

int
cpu_dumpsize(void);

void
dumpsys(void);

πŸ’Ύ DESCRIPTION πŸ’Ύ

let's get into it 🌸

  • cpu_dumpconf() β€” this is the machine-dependent interface that gets invoked during system bootstrap to determine the dump device and initialize machine-dependent kernel core dump state. Internally, it invokes cpu_dumpsize() to calculate the size of machine-dependent kernel core dump headers. ✨
  • dumpsys() β€” invoked by cpu_reboot() to dump kernel physical memory onto the dump device. It invokes cpu_dump() to write the machine-dependent header to the dump device at block number *blknop, using the dump device's PIO dump routine specified by the dump argument. πŸ’Ύ
  • cpu_dumpsize(), cpu_dump(), and dumpsys() β€” these are parts of the machine-dependent interface, however they are not exported to machine-independent code. πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€


that's the whole vibe, bestie 🫢 β€” Debian, May 24, 2002, CPU_DUMPCONF(9) β€” periodt πŸ’…

πŸ“¦ where this page comes from