/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdlib.h>
#include <sys/lgrp_user.h>
#include "jlgrp.h"
static void throwException(JNIEnv *, const char *, const char *);
/*
* Return the output of the getCookie() method executed on the
* supplied instance.
*/
{
}
/*
* Throw an exception of the specified class with the specified message.
*/
void
{
}
/*
* Obtain an lgrp cookie for an lgrp snapshot which contains details
* about available resources that the operating system knows about.
*
* If the call fails, then throw an exception which indicates that the
* snapshot could not be obtained.
*/
/*ARGSUSED1*/
{
"Could not obtain latency group cookie");
}
}
/*
* Release the snapshot in use by this instance. It is assumed that
* the cookie is held in the "cookie" field of the invoking instance
*/
{
}
/*
* Create a new LocalityGroup object which acts as a proxy for the
* root LocalityGroup.
*/
{
"LocalityGroup");
"locality/LocalityGroup;)V");
return (lgrp);
}
/*
* Return a new array containing all of the child LocalityGroup ids
* for the supplied instance.
*/
{
int i;
"Could not allocate memory for native_child array");
return (NULL);
}
goto retry;
}
"Could not allocate memory for java_child array");
return (NULL);
}
for (i = 0; i < nchild; i++)
return (children);
}
/*
* Return a new array containing all of the cpus contained directly
* within the LocalityGroup identified by the supplied instance.
*/
{
int i;
NULL, 0, LGRP_CONTENT_DIRECT);
"Could not allocate memory for native_cpus array");
return (NULL);
}
goto retry;
}
"Could not allocate memory for java_cpus array");
return (NULL);
}
for (i = 0; i < ncpus; i++)
return (cpus);
}
/*
* Return the latency between two supplied latency group IDs.
*/
/*ARGSUSED*/
{
}