Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man9f/kstat_install.9f
Real path: /usr/share/man/man9f/kstat_install.9f
Zurück
'\" te .\" Copyright (c) 1994, 2016, Oracle and/or its affiliates. All rights reserved. .TH kstat_install 9F "19 Aug 2016" "Oracle Solaris 11.4" "Kernel Functions" .SH NAME kstat_install \- add a fully initialized kstat to the system .SH SYNOPSIS .LP .nf #include <sys/types.h> #include <sys/kstat.h> \fBvoid\fR \fBkstat_install\fR(\fBkstat_t *\fR\fIksp\fR); .fi .SH INTERFACE LEVEL .sp .LP Solaris DDI specific (Solaris DDI) .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIksp\fR\fR .ad .RS 7n .rt Pointer to a fully initialized \fBkstat\fR(9S) structure. .RE .SH DESCRIPTION .sp .LP The \fBkstat_install()\fR function is used in conjunction with the \fBkstat_create()\fR function to allocate and initialize a \fBkstat\fR(9S) structure. For more information, see the \fBkstat_create\fR(9F) man page. .sp .LP After a successful call to the \fBkstat_create()\fR function, the driver must perform any necessary initialization of the data section (such as setting the name fields in a \fBkstat\fR of type \fB KSTAT_TYPE_NAMED\fR). Virtual \fBkstat\fRs must have the \fBks_data\fR field set at this time. The provider may also set the \fBks_update\fR, \fBks_private\fR, and \fBks_lock\fR fields if necessary. .sp .LP Once the \fBkstat\fR is completely initialized, \fBkstat_install\fR is used to make the \fBkstat\fR accessible to the outside world. .SH RETURN VALUES .sp .LP None. .SH CONTEXT .sp .LP The \fBkstat_install()\fR function can be called from user or kernel context. .SH EXAMPLES .LP \fBExample 1\fR Allocating and Initializing a \fBkstat\fR Structure .sp .LP The method for allocating and initializing a \fBkstat\fR structure is generally as follows: .sp .in +2 .nf kstat_t *ksp; ksp = kstat_create(module, instance, name, class, type, ndata, flags); if (ksp) { /* ... provider initialization, if necessary */ kstat_install(ksp); } .fi .in -2 .sp .SH SEE ALSO .sp .LP \fBkstat_delete\fR(9F), \fBkstat_create\fR(9F), \fBkstat_named_init\fR(9F), \fBkstat\fR(9S), \fBkstat2_create\fR(9F), \fBkstat2_delete\fR(9F), \fBkstat2_install\fR(9F) .sp .LP \fIWriting Device Drivers in Oracle Solaris 11.4\fR .SH NOTES .sp .LP The use of the \fBkstat_install()\fR function is deprecated. The function may be removed in a future release of Oracle Solaris. Use the \fBkstat2_create()\fR and \fBkstat2_install()\fR functions instead. For more information, see the \fBkstat2_create\fR(9F) and \fBkstat2_install\fR(9F) man pages.