xref: /titanic_41/usr/src/cmd/mdb/common/mdb/mdb_vcb.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_MDB_VCB_H
28 #define	_MDB_VCB_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <mdb/mdb_addrvec.h>
33 #include <mdb/mdb_nv.h>
34 
35 #ifdef	__cplusplus
36 extern "C" {
37 #endif
38 
39 #ifdef _MDB
40 
41 struct mdb_frame;			/* Forward declaration */
42 struct mdb_cmd;				/* Forward declaration */
43 
44 typedef struct mdb_vcb {
45 	mdb_var_t *vc_var;		/* Pointer to dependent variable */
46 	mdb_addrvec_t vc_addrv;		/* List of address values */
47 	size_t vc_adnext;		/* Next index for vc_addrv */
48 	struct mdb_vcb *vc_link;	/* Pointer to next vcb in list */
49 	struct mdb_vcb *vc_parent;	/* Pointer to parent vcb */
50 } mdb_vcb_t;
51 
52 extern mdb_vcb_t *mdb_vcb_create(mdb_var_t *);
53 extern void mdb_vcb_destroy(mdb_vcb_t *);
54 
55 extern void mdb_vcb_propagate(mdb_vcb_t *);
56 extern void mdb_vcb_purge(mdb_vcb_t *);
57 
58 extern void mdb_vcb_inherit(struct mdb_cmd *, struct mdb_cmd *);
59 extern void mdb_vcb_insert(mdb_vcb_t *, struct mdb_frame *);
60 extern mdb_vcb_t *mdb_vcb_find(mdb_var_t *, struct mdb_frame *);
61 extern void mdb_vcb_update(struct mdb_frame *, uintptr_t);
62 
63 #endif	/* _MDB */
64 
65 #ifdef	__cplusplus
66 }
67 #endif
68 
69 #endif	/* _MDB_VCB_H */
70