gmem_mem.c revision 1529f529004c61fcfd0d95ab79b0f257d6ad4451
/*
* 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
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Support routines for managing state related to memory modules.
*/
#include <gmem_mem.h>
#include <gmem_dimm.h>
#include <gmem.h>
#include <assert.h>
#include <errno.h>
#include <strings.h>
#include <ctype.h>
#include <fcntl.h>
#include <unistd.h>
char *
{
const char *fmt = "%s_%s_serd";
return (nm);
}
char *
{
const char *fmt = "%s_%llXserd";
return (nm);
}
char *
{
const char *fmt = "%s_%llX_%x_%x_serd";
return (nm);
}
{
uint32_t filter_ratio = 0;
if (gmem.gm_filter_ratio == 0) {
if (nvlist_lookup_uint32(nvl,
GMEM_ERPT_PAYLOAD_FILTER_RATIO, &erpt_ratio) == 0)
} else
return (filter_ratio);
}
void
{
&erpt_serdn) == 0)
serd_n = erpt_serdn;
&erpt_serdt) == 0)
serd_t = erpt_serdt;
}
}
int
{
int i, rc;
if (ratio == 0)
for (i = 0; i < ratio; i++) {
if (rc != FMD_B_FALSE)
break;
}
return (rc);
}
void
{
serial));
}
void
{
}
void
{
}
void
{
}