n2rng_kstat.c revision fec509a05ddbf645268fe2e537314def7d1b67c8
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Kernel statistics.
*/
static int n2rng_ksupdate(kstat_t *, int);
/*
* Initialize Kstats.
*/
void
{
int instance;
/*
* sysadmin has explicity disabled stats to prevent
* covert channel.
*/
return;
}
/*
* Named kstats.
*/
sizeof (n2rng_stat_t) / sizeof (kstat_named_t),
} else {
}
}
/*
* Deinitialize Kstats.
*/
void
{
}
}
/*
* Update Kstats.
*/
int
{
int i;
if (rw == KSTAT_WRITE) {
for (i = 0; i < DS_MAX; i++) {
}
} else {
/* handy status value */
/* device has failed */
} else {
/* everything looks good */
}
for (i = 0; i < DS_MAX; i++) {
}
}
return (0);
}