144298Smarc /*- 2*61068Sbostic * Copyright (c) 1989, 1993 3*61068Sbostic * The Regents of the University of California. All rights reserved. 444298Smarc * 544298Smarc * %sccs.include.redist.c% 644298Smarc * 7*61068Sbostic * @(#)kvm.h 8.1 (Berkeley) 06/02/93 844298Smarc */ 944298Smarc 1047769Sbostic #ifndef _KVM_H_ 1147769Sbostic #define _KVM_H_ 1244298Smarc 1346357Sbostic /* Default version symbol. */ 1446357Sbostic #define VRS_SYM "_version" 1546357Sbostic #define VRS_KEY "VERSION" 1644298Smarc 1753107Smckusick #include <nlist.h> 1847769Sbostic #include <sys/cdefs.h> 1947769Sbostic 2046342Sbostic __BEGIN_DECLS 2153107Smckusick 2253107Smckusick typedef struct __kvm kvm_t; 2353107Smckusick 2453678Sbostic struct kinfo_proc; 2553675Sbostic int kvm_close __P((kvm_t *)); 2653107Smckusick char **kvm_getargv __P((kvm_t *, const struct kinfo_proc *, int)); 2753107Smckusick char **kvm_getenvv __P((kvm_t *, const struct kinfo_proc *, int)); 2853675Sbostic char *kvm_geterr __P((kvm_t *)); 2959340Sbostic int kvm_getloadavg __P((kvm_t *, double [], int)); 3054971Sleres char *kvm_getfiles __P((kvm_t *, int, int, int *)); 3153675Sbostic struct kinfo_proc * 3253675Sbostic kvm_getprocs __P((kvm_t *, int, int, int *)); 3353675Sbostic int kvm_nlist __P((kvm_t *, struct nlist *)); 3453675Sbostic kvm_t *kvm_open 3553675Sbostic __P((const char *, const char *, const char *, int, const char *)); 3653675Sbostic kvm_t *kvm_openfiles 3753675Sbostic __P((const char *, const char *, const char *, int, char *)); 3853675Sbostic int kvm_read __P((kvm_t *, unsigned long, void *, unsigned int)); 3953675Sbostic int kvm_write __P((kvm_t *, unsigned long, const void *, unsigned int)); 4053107Smckusick 4146342Sbostic __END_DECLS 4247769Sbostic 4347769Sbostic #endif /* !_KVM_H_ */ 44