gmem_page.h 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.
*/
#ifndef _GMEM_PAGE_H
#define _GMEM_PAGE_H
/*
* Routines for the creation of page retirement faults and for the management of
* page-related state.
*/
#include <gmem_state.h>
#include <gmem_fmri.h>
#ifdef __cplusplus
extern "C" {
#endif
#define CMD_PAGE_VERSION_0 PAGE_MKVERSION(0)
#define CMD_PAGE_VERSION CMD_PAGE_VERSION_0
typedef struct gmem_page_pers {
typedef struct gmem_page {
} gmem_page_t;
#define CMD_PAGE_MAXSIZE sizeof (gmem_page_pers_t)
#define CMD_PAGE_MINSIZE sizeof (gmem_page_pers_t)
/*
* Page retirement
*
* When a page is to be retired, these routines are called to generate and
* manage a fault.memory.page against the page.
*/
extern void gmem_page_close(fmd_hdl_t *, void *);
uint64_t);
extern void gmem_page_validate(fmd_hdl_t *);
extern void gmem_page_fini(fmd_hdl_t *);
#ifdef __cplusplus
}
#endif
#endif /* _GMEM_PAGE_H */