17aec1d6cindi/* 27aec1d6cindi * CDDL HEADER START 37aec1d6cindi * 47aec1d6cindi * The contents of this file are subject to the terms of the 574a31cetimh * Common Development and Distribution License (the "License"). 674a31cetimh * You may not use this file except in compliance with the License. 77aec1d6cindi * 87aec1d6cindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97aec1d6cindi * or http://www.opensolaris.org/os/licensing. 107aec1d6cindi * See the License for the specific language governing permissions 117aec1d6cindi * and limitations under the License. 127aec1d6cindi * 137aec1d6cindi * When distributing Covered Code, include this CDDL HEADER in each 147aec1d6cindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157aec1d6cindi * If applicable, add the following below this CDDL HEADER, with the 167aec1d6cindi * fields enclosed by brackets "[]" replaced with your own identifying 177aec1d6cindi * information: Portions Copyright [yyyy] [name of copyright owner] 187aec1d6cindi * 197aec1d6cindi * CDDL HEADER END 207aec1d6cindi */ 217aec1d6cindi 227aec1d6cindi/* 238393544Hyon Kim * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 247aec1d6cindi */ 258522c52Rob Johnston/* 26c559157Rob Johnston * Copyright 2020 Joyent, Inc. 278522c52Rob Johnston */ 287aec1d6cindi 297aec1d6cindi#include <alloca.h> 300eb822acindi#include <ctype.h> 310eb822acindi#include <limits.h> 327aec1d6cindi#include <syslog.h> 337aec1d6cindi#include <strings.h> 340eb822acindi#include <unistd.h> 358522c52Rob Johnston#include <sys/fm/protocol.h> 368522c52Rob Johnston#include <sys/systeminfo.h> 378522c52Rob Johnston#include <sys/utsname.h> 387aec1d6cindi 397aec1d6cindi#include <topo_error.h> 40c559157Rob Johnston#include <topo_digraph.h> 417aec1d6cindi#include <topo_subr.h> 427aec1d6cindi 437aec1d6cindivoid 447aec1d6cinditopo_hdl_lock(topo_hdl_t *thp) 457aec1d6cindi{ 467aec1d6cindi (void) pthread_mutex_lock(&thp->th_lock); 477aec1d6cindi} 487aec1d6cindi 49