scfkstat.c revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
/*
* 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
*/
/*
* All Rights Reserved, Copyright (c) FUJITSU LIMITED 2006
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* for kstat_named_create(9F)
*/
typedef struct _scf_kstat_named_list {
char *name;
static scf_kstat_named_list scf_kstat_system_list[] = {
};
/*
* prototype
*/
/*
* from scf_attach()
*/
/* DDI_ATTACH */
void
{
#define SCF_FUNC_NAME "scf_kstat_init() "
/* NAMED state */
}
/*
* from scf_detach()
*/
/* DDI_DETACH */
void
{
#define SCF_FUNC_NAME "scf_kstat_fini() "
}
}
/*
* scf_kstat_named_init()
* kstat_create(KSTAT_TYPE_NAMED) + kstat_named_init() + kstat_install()
*/
static kstat_t *
{
#define SCF_FUNC_NAME "scf_kstat_named_init() "
int ii;
return (NULL);
}
/*
* initialize the named kstat
*/
}
return (scf_ksp);
}
/*
* "scf" update
*/
static int
{
#define SCF_FUNC_NAME "scf_kstat_sys_update() "
/* this is a read-only kstat */
if (rw == KSTAT_WRITE) {
return (EACCES);
}
} else {
}
} else {
}
} else {
}
return (0);
}