kvm.h revision 1320caf7cc74a3c5be65ef23516dee229adc288a
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1987-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
/*
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
*/
#ifndef _KVM_H
#define _KVM_H
#include <nlist.h>
#ifdef __cplusplus
extern "C" {
#endif
/* define a 'cookie' to pass around between user code and the library */
/* libkvm routine definitions */
#ifdef __STDC__
int, const char *);
struct as *);
extern int kvm_setproc(kvm_t *);
extern const char *kvm_namelist(kvm_t *);
#else
extern int kvm_close();
extern int kvm_nlist();
extern ssize_t kvm_kwrite();
extern ssize_t kvm_uwrite();
extern ssize_t kvm_awrite();
extern ssize_t kvm_pwrite();
extern uint64_t Kvm_physaddr();
extern proc_t *kvm_getproc();
extern proc_t *kvm_nextproc();
extern int kvm_setproc();
extern int kvm_getcmd();
#endif /* __STDC__ */
#ifdef __cplusplus
}
#endif
#endif /* _KVM_H */