diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-19 23:15:57 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-19 23:15:57 +0000 |
commit | e46701f3ba417eb809e480d2383217567bd8a0d3 (patch) | |
tree | 6418b00c595e11941ebeb3d312e0136cfb1621b8 /lib/libkvm/kvm_private.h | |
parent | 169c29d1b708c51bbae3f546e0adfe0d433b5b7b (diff) |
From NetBSD: merge of 960317
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r-- | lib/libkvm/kvm_private.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h index a6eb9b7bf0c..d1b2583f559 100644 --- a/lib/libkvm/kvm_private.h +++ b/lib/libkvm/kvm_private.h @@ -1,3 +1,5 @@ +/* $OpenBSD: kvm_private.h,v 1.2 1996/03/19 23:15:25 niklas Exp $ */ + /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -59,13 +61,22 @@ struct __kvm { int arglen; /* length of the above */ char **argv; /* (dynamic) storage for argv pointers */ int argc; /* length of above (not actual # present) */ + + /* + * Header structures for kernel dumps. Only gets filled in for + * dead kernels. + */ + struct kcore_hdr *kcore_hdr; + struct cpu_kcore_hdr *cpu_hdr; + off_t dump_off; /* Where the actual dump starts */ + /* * Kernel virtual address translation state. This only gets filled * in for dead kernels; otherwise, the running kernel (i.e. kmem) * will do the translations for us. It could be big, so we * only allocate it if necessary. */ - struct vmstate *vmst; + struct vmstate *vmst; /* XXX: should become obsoleted */ /* * These kernel variables are used for looking up user addresses, * and are cached for efficiency. @@ -78,11 +89,13 @@ struct __kvm { * Functions used internally by kvm, but across kvm modules. */ void _kvm_err __P((kvm_t *kd, const char *program, const char *fmt, ...)); +int _kvm_dump_mkheader __P((kvm_t *kd_live, kvm_t *kd_dump)); void _kvm_freeprocs __P((kvm_t *kd)); void _kvm_freevtop __P((kvm_t *)); int _kvm_initvtop __P((kvm_t *)); int _kvm_kvatop __P((kvm_t *, u_long, u_long *)); void *_kvm_malloc __P((kvm_t *kd, size_t)); +off_t _kvm_pa2off __P((kvm_t *, u_long)); void *_kvm_realloc __P((kvm_t *kd, void *, size_t)); void _kvm_syserr __P((kvm_t *kd, const char *program, const char *fmt, ...)); |