topo_node.c revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe
27aec1d6cindi * CDDL HEADER START
37aec1d6cindi *
47aec1d6cindi * The contents of this file are subject to the terms of the
57aec1d6cindi * Common Development and Distribution License, Version 1.0 only
67aec1d6cindi * (the "License").  You may not use this file except in compliance
77aec1d6cindi * with the License.
87aec1d6cindi *
97aec1d6cindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107aec1d6cindi * or
117aec1d6cindi * See the License for the specific language governing permissions
127aec1d6cindi * and limitations under the License.
137aec1d6cindi *
147aec1d6cindi * When distributing Covered Code, include this CDDL HEADER in each
157aec1d6cindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167aec1d6cindi * If applicable, add the following below this CDDL HEADER, with the
177aec1d6cindi * fields enclosed by brackets "[]" replaced with your own identifying
187aec1d6cindi * information: Portions Copyright [yyyy] [name of copyright owner]
197aec1d6cindi *
207aec1d6cindi * CDDL HEADER END
217aec1d6cindi */
237aec1d6cindi * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
247aec1d6cindi * Use is subject to license terms.
257aec1d6cindi */
277aec1d6cindi#pragma ident	"%Z%%M%	%I%	%E% SMI"
307aec1d6cindi * Topology Nodes
317aec1d6cindi *
327aec1d6cindi * Topology nodes, tnode_t, are data structures containing per-FMRI
337aec1d6cindi * information and are linked together to form the topology tree.
347aec1d6cindi * Nodes are created during the enumeration process of topo_snap_hold()
357aec1d6cindi * and destroyed during topo_snap_rele().  For the most part, tnode_t data
367aec1d6cindi * is read-only and no lock protection is required.  Nodes are