/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/*
*/
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <libxml/xpathInternals.h>
#include "fabric-xlate.h"
/* Static FM Topo XML Format and XML XPath Context */
static int fab_valid_topo = 0;
static void
{
int err = 0;
/* Open the temporary file with proper ownership */
while (fd == -1) {
return;
}
return;
}
}
/* Associate a stream with the temporary file */
goto cleanup;
}
/* Hold topology */
goto cleanup;
}
/* Print topology to XML file */
goto cleanup;
}
/* Release topology */
/* Reload topology from XML file */
if (fab_xpathCtx)
if (fab_doc)
fab_valid_topo = 1;
else if (fd != -1)
(void) unlink(XMLTOPOFILE);
}
/*ARGSUSED*/
static void
{
(void) pthread_mutex_lock(&fab_lock);
if (!fab_valid_topo)
(void) pthread_mutex_unlock(&fab_lock);
return;
}
} else {
"ereport.io.pciex.rc.epkt")) {
} else {
}
}
}
/* ARGSUSED */
static void
{
(void) pthread_mutex_lock(&fab_lock);
fab_valid_topo = 0;
(void) pthread_mutex_unlock(&fab_lock);
}
fab_recv, /* fmdo_recv */
NULL, /* fmdo_timeout */
NULL, /* fmdo_close */
NULL, /* fmdo_stats */
NULL, /* fmdo_gc */
NULL, /* fmdo_send */
fab_topo, /* fmdo_topo */
};
};
void
{
return;
/* Init libxml */
}
void
{
/* Fini xpath */
if (fab_xpathCtx)
/* Free xml document */
if (fab_doc)
/* Fini libxml */
}