/*
* 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.
*/
/*
* Case management and saved state restoration
*/
#include <gmem_state.h>
#include <gmem_mem.h>
#include <gmem_page.h>
#include <gmem_dimm.h>
#include <gmem.h>
#include <string.h>
/* Must be in sync with gmem_ptrsubtype_t */
NULL,
gmem_dimm_close, /* GMEM_PTR_DIMM_CASE */
gmem_page_close, /* GMEM_PTR_PAGE_CASE */
};
{
return (cp);
}
void
{
}
void
{
if (close) {
}
}
/* Must be in sync with gmem_nodetype_t */
NULL,
gmem_dimm_restore, /* CMD_NT_DIMM */
gmem_page_restore, /* CMD_NT_PAGE */
};
int
{
void *thing;
continue;
else if (sz != sizeof (gmem_case_ptr_t))
return (gmem_set_errno(EINVAL));
sizeof (gmem_case_ptr_t));
sizeof (gmem_case_restorers) /
sizeof (gmem_case_restorer_f *))
return (gmem_set_errno(EINVAL));
continue;
}
}
return (0);
}
void
{
}
}