dumphdr_t
const dumphdr_t *dhp = (const dumphdr_t *)buf;
print_dumphdr(const int fd, const dumphdr_t *dhp, uint32_t (*swap)(uint32_t),
dumphdr_t dh;
if (swap(dhp->dump_version) > 8 && pread(fd, &dh, sizeof (dumphdr_t),
(off_t)0) == sizeof (dumphdr_t)) {
static void print_dumphdr(const int, const dumphdr_t *, uint32_t (*)(uint32_t),
extern void mdb_dump_print_content(dumphdr_t *, pid_t);
return (sizeof (dumphdr_t));
nbytes = MIN(nbytes, sizeof (dumphdr_t));
mdb_free(kt->k_dumphdr, sizeof (dumphdr_t));
kt->k_dumphdr = mdb_alloc(sizeof (dumphdr_t), UM_SLEEP);
if (IOP_READ(vmcore, kt->k_dumphdr, sizeof (dumphdr_t)) !=
sizeof (dumphdr_t)) {
mdb_free(kt->k_dumphdr, sizeof (dumphdr_t));
dumphdr_t h;
return (IOP_READ(io, &h, sizeof (dumphdr_t)) == sizeof (dumphdr_t) &&
dumphdr_t h;
return (IOP_READ(io, &h, sizeof (dumphdr_t)) == sizeof (dumphdr_t) &&
dumphdr_t *dh = kt->k_dumphdr;
dumphdr_t *dh = kt->k_dumphdr;
mdb_dump_print_content(dumphdr_t *dh, pid_t content)
Pread(dumpfd, &corehdr, sizeof (dumphdr_t), dumphdr.dump_start);
if (memcmp(&corehdr, &dumphdr, sizeof (dumphdr_t)) != 0) {
static dumphdr_t corehdr, dumphdr; /* initial and terminal dumphdrs */
dumphdr_t *dump = &kd->kvm_dump;
dumphdr_t *dumphdr; /* dump header */
dumphdr = kmem_zalloc(sizeof (dumphdr_t), KM_SLEEP);
size = MIN(dumpcfg.cbuf[0].size, DUMP_OFFSET - sizeof (dumphdr_t) -
dumpvp_write(dumphdr, sizeof (dumphdr_t));
dumpvp_write(dumphdr, sizeof (dumphdr_t));