pi_ldom.c revision 2
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * Open connections to the LDOM and Machine Description libraries used during 2N/A * Initialize a connection to the LDOM machine description interface. 2N/A * Store the module pointer for this session. This file-global 2N/A * is used by the allocators called by libldom and libmdesc. 2N/A /* Initialize the LDOM connection */ 2N/A "sun4vpi failed to initialize LDOM layer.\n");
2N/A * Initialize the machine description layer for this ldom instance. 2N/A * If this is a guest domain and this module is being called only for 2N/A * authority (pre-T3 systems); then PRI domain services are not 2N/A * available and we must use the local md copy. 2N/A /* Initialize the machine description internal layer */ 2N/A /* Close the machine description connection */ 2N/A /* Close the connection to the LDOM layer */ 2N/A /* Free the ldom connection data */ 2N/A /* Reset the file-global module pointer */ 2N/A /* Cannot allocate memory without a module pointer */ 2N/A /* Cannot free memory without a module pointer */